From f1bd89f141acb53333135c86940d1d1c0549b4bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 25 Sep 2015 15:24:03 +0200 Subject: Add bbb target for BeagleBone Black Buildroot configuration is now generated from base configuration and configuration defined by specified target. And initram is now build automatically for test target and all target. --- targets/bbb/build/GNUmakefile | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 targets/bbb/build/GNUmakefile (limited to 'targets/bbb/build/GNUmakefile') diff --git a/targets/bbb/build/GNUmakefile b/targets/bbb/build/GNUmakefile new file mode 100644 index 0000000..73dfad4 --- /dev/null +++ b/targets/bbb/build/GNUmakefile @@ -0,0 +1,48 @@ +export ARCH=arm +export CROSS_COMPILE=/opt/OSELAS.Toolchain-2014.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/bin/arm-cortexa8-linux-gnueabihf- +export LOADADDR=80008000 + +VERSION = 3 +PATCHLEVEL = 8 + +lastword = $(word $(words $(1)),$(1)) +makedir := $(dir $(call lastword,$(MAKEFILE_LIST))) + +ifeq ("$(origin V)", "command line") +VERBOSE := $(V) +endif +ifneq ($(VERBOSE),1) +Q := @ +endif + +MAKEARGS := -C ../linux +MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir)) + +MAKEFLAGS += --no-print-directory + +.PHONY: all $(MAKECMDGOALS) + +all := $(filter-out all Makefile,$(MAKECMDGOALS)) + +ifeq ($(all),) +all: + $(Q)$(MAKE) $(MAKEARGS) uImage dtbs + rm ../linux/firmware/am335x-pm-firmware.bin +else +all: + $(Q)$(MAKE) $(MAKEARGS) $(all) + rm ../linux/firmware/am335x-pm-firmware.bin +endif + +all: ../linux/firmware/am335x-pm-firmware.bin + +../linux/firmware/am335x-pm-firmware.bin: + cd ../linux && git checkout 3.8.13-bone74 firmware/am335x-pm-firmware.bin && git reset . + +Makefile:; + +$(all): all + @: + +%/: all + @: -- cgit v1.2.3