diff options
author | Henrik Strand <henrik.xx.strand@stericsson.com> | 2010-09-07 16:14:26 +0200 |
---|---|---|
committer | Michael BRANDT <michael.brandt@stericsson.com> | 2010-09-09 15:58:49 +0200 |
commit | db0401e2f9ba117c8e565bac5a040fe20f096865 (patch) | |
tree | 91a517a313ef7867f28c2e3c6c9b2e36666e9445 /Android.mk | |
parent | cfb85ab2f912cb2788a1a1d0bce9731783eaf644 (diff) |
Add Android make file
Added Android make file in order to build the platform according to Android basic principles.
ST-Ericsson ID: CR264527
Change-Id: I90b249a7e751ce7b57f1470adffd5938c8e214e9
Signed-off-by: Henrik Strand <henrik.xx.strand@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4689
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
Reviewed-by: Ulrika MALMBORG <ulrika.malmborg@stericsson.com>
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 000000000..20b6a1e18 --- /dev/null +++ b/Android.mk @@ -0,0 +1,49 @@ +#Android makefile to build u-boot as a part of Android Build + +ifeq ($(ENABLE_CR264527),true) +# Give other modules a nice, symbolic name to use as a dependent +# Yes, there are modules that cannot build unless uboot has +# been built. Typical (only?) example: linux kernel (needs mkimage program) +.phony: build-uboot clean-uboot + + +PRIVATE_UBOOT_ARGS := -C $(BOOT_PATH)/u-boot ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) +PRIVATE_OUT := $(abspath $(PRODUCT_OUT)/root) + +# Links the uboot build into the Android build +ALL_PREBUILT += build-uboot + + +# Configures, builds and installs uboot. UBOOT_DEFCONFIG usually +# comes from the BoardConfig.mk file, but can be overridden on the +# command line or by an environment variable. +# If UBOOT_DEFCONFIG is set to 'local', configuration is skipped. +# This is useful if you want to play with your own, custom configuration. + +build-uboot: +ifeq ($(UBOOT_DEFCONFIG),local) + @echo Skipping uboot configuration, UBOOT_DEFCONFIG set to local +else + $(MAKE) $(PRIVATE_UBOOT_ARGS) $(UBOOT_DEFCONFIG) +endif + $(MAKE) $(PRIVATE_UBOOT_ARGS) + + +# An Android clean removes the files built for the current HW configuration, +# such as u8500, +# while a clobber removes all built files (rm -rf $(OUT_DIR)). +# Uboot only has one build tree, so clean and clobber will be +# the same. + +clean clobber : clean-uboot + +clean-uboot: + $(MAKE) $(PRIVATE_UBOOT_ARGS) clean + +installclean: installclean-uboot + +installclean-uboot: + rm -f u-boot.bin u-boot.map u-boot.srec + + +endif |