From db0401e2f9ba117c8e565bac5a040fe20f096865 Mon Sep 17 00:00:00 2001 From: Henrik Strand Date: Tue, 7 Sep 2010 16:14:26 +0200 Subject: 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 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4689 Reviewed-by: Michael BRANDT Reviewed-by: Ulrika MALMBORG --- Android.mk | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Android.mk (limited to 'Android.mk') 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 -- cgit v1.2.3