Build

From Braindump
Jump to navigation Jump to search

Makefile

./configure --prefix=/usr
make
sudo make install

autotools

libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure --prefix=/opt

cmake

cmake PREFIX=/opt
sudo make install

ninja

mkdir build
cd build
cmake ..
install -H.. -B. -G Ninja

cmake -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../build//
install -H. -B../build -G Ninja
ninja -C ../build install

install -H. -B../build
make -C ../build install

LFS

https://www.linuxfromscratch.org/lfs/view/development/chapter08/introduction.html

OpenWRT

TP-Link Deco

tplink deco m9

ipq4019 arm v7

Buildroot

apt install libncurses-dev python3-matplotlib python3-numpy

su - buildroot

cd /opt

git clone https://gitlab.com/buildroot.org/buildroot.git

cd buildroot


make imx6ullevk_defconfig

make menuconfig

make

ls -la /opt/buildroot/output/images/sdcard.img

dd if=/opt/buildroot/output/images/sdcard.img of=/dev/sdd


make clean

export MPLCONFIGDIR=/tmp

make graph-build

make graph-size

make legal-info

https://buildroot.org/downloads/manual/manual.html

Yocto

https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html

https://wiki.yoctoproject.org/wiki/Main_Page

https://www.youtube.com/watch?v=yuE7my3KOpo

apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool
pip list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip install -U
cd /usr/src
git clone git://git.yoctoproject.org/poky
git checkout -t origin/kirkstone -b kirkstone
cd /usr/src/poky
source oe-init-build-env /opt/poky
vi config/local.conf
bitbake core-image-minimal
BB_SIGNATURE_HANDLER = "OEEquivHash"
BB_HASHSERVE = "auto"
BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687"
SSTATE_MIRRORS ?= "file://.* https://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
runqemu qemux86-64


apk add bash coreutils lz4 g++ make automake autoconf diffutils patch rpcgen gawk sed wget findutils git unzip texinfo gcc python3 py3-pip py3-pexpect py3-jinja2 py3-subunit file chrpath socat cpio iputils-ping zstd
wget https://invisible-island.net/datafiles/release/diffstat.tar.gz
./configure --prefix=/usr
make
make install
mkdir -p /opt/src
cd /opt/src
git clone git://git.yoctoproject.org/poky
cd poky/build
bitbake-layers add-layer ../meta-altera
su build
bash
cd /opt/src/poky
source oe-init-build-env
bitbake core-image-minimal
NOTE: Executing ACLOCAL="aclocal --system-acdir=/opt/src/poky/build/tmp/work/x86_64-linux/libtool-native/2.4.7-r0/recipe-sysroot-native/usr/share/aclocal/ --automake-acdir=/opt/src/poky/build/tmp/work/x86_64-linux/libtool-native/2.4.7-r0/recipe-sysroot-native/usr/share/aclocal-1.16" autoreconf -Wcross --verbose --install --force --exclude=libtoolize -I /opt/src/poky/build/tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7/m4/ -I /opt/src/poky/build/tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7/tests/
autoreconf: error: unrecognized option '--exclude=libtoolize'.