aboutsummaryrefslogtreecommitdiff
path: root/targets/bbb/build/GNUmakefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-09-25 15:24:03 +0200
committerKarel Kočí <cynerd@email.cz>2015-09-25 15:32:29 +0200
commitf1bd89f141acb53333135c86940d1d1c0549b4bd (patch)
treedb7ffdebebc0a1b0b6226029de2185630a68512a /targets/bbb/build/GNUmakefile
parent47669028715fd1319219862e12a4ad5698409a6b (diff)
downloadlinux-conf-perf-f1bd89f141acb53333135c86940d1d1c0549b4bd.tar.gz
linux-conf-perf-f1bd89f141acb53333135c86940d1d1c0549b4bd.tar.bz2
linux-conf-perf-f1bd89f141acb53333135c86940d1d1c0549b4bd.zip
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.
Diffstat (limited to 'targets/bbb/build/GNUmakefile')
-rw-r--r--targets/bbb/build/GNUmakefile48
1 files changed, 48 insertions, 0 deletions
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
+ @: