buildbrain/Makefile

81 lines
1.4 KiB
Makefile
Raw Normal View History

JOBS=$(shell grep -c '^processor' /proc/cpuinfo)
2020-09-28 00:49:26 +09:00
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
.PHONY:
setup:
@echo "Updating submodules"
@git submodule update --init --recursive
2020-10-18 13:52:20 +09:00
.PHONY:
setup-dev:
2020-09-28 00:49:26 +09:00
@echo "Creating venv"
@python3 -m venv env
@echo "Installing r3build"
@. ./env/bin/activate; \
2020-10-18 13:52:20 +09:00
pip install wheel; \
2020-09-28 00:49:26 +09:00
pip install r3build
.PHONY:
watch:
@echo "Watching changes in linux-brain and u-boot-brain"
@. ./env/bin/activate; \
@python3 -m r3build
.PHONY:
udefconfig:
2020-10-26 04:19:44 +09:00
make -C ./u-boot-brain pwsh1_defconfig
2020-09-28 00:49:26 +09:00
2020-10-12 06:09:17 +09:00
.PHONY:
usavedefconfig:
make -C ./u-boot-brain savedefconfig
2020-09-28 00:49:26 +09:00
.PHONY:
umenuconfig:
make -C ./u-boot-brain menuconfig
2020-10-26 04:19:51 +09:00
.PHONY:
uclean:
make -C ./u-boot-brain distclean
2020-09-28 00:49:26 +09:00
.PHONY:
ubuild:
make -j$(JOBS) -C ./u-boot-brain u-boot.sb
2020-09-28 00:49:26 +09:00
.PHONY:
ldefconfig:
make -C ./linux-brain mxs_defconfig
.PHONY:
lmenuconfig:
make -C ./linux-brain menuconfig
.PHONY:
lsavedefconfig:
make -C ./linux-brain savedefconfig
cp ./linux-brain/defconfig ./linux-brain/arch/arm/configs/mxs_defconfig
.PHONY:
lbuild:
make -j$(JOBS) -C ./linux-brain
2020-09-28 00:49:26 +09:00
.PHONY:
uuu:
sudo uuu ./u-boot-brain/u-boot.sb
2020-10-18 15:27:28 +09:00
.PHONY:
nkbin-maker:
2020-10-18 15:27:28 +09:00
make -C ./nkbin_maker
.PHONY:
nk.bin:
2020-10-18 15:27:28 +09:00
./nkbin_maker/bsd-ce ./u-boot-brain/u-boot.bin
2020-09-28 00:49:26 +09:00
debian:
mkdir debian
sudo debootstrap --arch=armel --foreign buster debian/
sudo cp /usr/bin/qemu-arm-static debian/usr/bin/
2020-10-27 19:27:27 +09:00
sudo cp ./tools/setup_debian.sh debian/
2020-09-28 00:49:26 +09:00
sudo chroot debian /setup_debian.sh