roundshot

n/a
git clone git://parazyd.org/roundshot.git
Log | Files | Refs | LICENSE

commit 89ce8b928ba75e4df9a5c0f46be8ce9f966dc6af
parent b77b440ef4cc7e430501fbd22d41175139d5f0e6
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 21 Dec 2017 14:03:29 +0100

Add u-boot build.

Diffstat:
MMakefile | 14+++++++++-----
Au-boot/Makefile | 25+++++++++++++++++++++++++
Au-boot/config.mk | 9+++++++++
3 files changed, 43 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,24 +4,28 @@ all: cd toolchain && make cd initramfs && make - cd linux && make + cd linux && make cp -ra linux/build/lib squashfs/overlay cd squashfs && make + cd u-boot && make dist: all mkdir -p dist cp -fra linux/build dist/linux-build cp -fra initramfs/initramfs.cpio.bz2 dist cp -f squashfs/filesystem.squashfs dist + cp -f u-boot/build/u-boot-sunxi-with-spl.bin dist clean: make -C toolchain clean make -C initramfs clean - make -C linux clean - make -C squashfs clean + make -C linux clean + make -C squashfs clean + make -C u-boot clean distclean: make -C toolchain distclean make -C initramfs distclean - make -C linux distclean - make -C squashfs distclean + make -C linux distclean + make -C squashfs distclean + make -C u-boot distclean diff --git a/u-boot/Makefile b/u-boot/Makefile @@ -0,0 +1,25 @@ +# roundshot +# See LICENSE file for copyright and license details + +include config.mk + +all: u-boot + +u-boot: + git clone $(U_BOOT_URL) -b $(U_BOOT_VERSION) $@ + +build-uboot: + @export PATH="$(TC_PATH)/bin:$(PATH)" && \ + cd u-boot && \ + make ARCH=arm CROSS_COMPILE=$(TC_NAME) $(ARM_DEFCONFIG) && \ + make ARCH=arm CROSS_COMPILE=$(TC_NAME) -j9 + +install: + @mkdir -p build + cp -f u-boot/u-boot-sunxi-with-spl.bin build + +clean: + rm -rf u-boot + +distclean: clean + rm -rf build diff --git a/u-boot/config.mk b/u-boot/config.mk @@ -0,0 +1,9 @@ +# See LICENSE file for copyright and license details + +U_BOOT_VERSION = v2018.01-rc2 +U_BOOT_URL = git://git.denx.de/u-boot.git + +ARM_DEFCONFIG = A20-OLinuXino-Lime2_defconfig + +TC_PATH = $(PWD)/../toolchain/arm-linux-musleabihf +TC_NAME = arm-linux-musleabihf-