Introduced a alternative way of building u-boot instead of forcing u-boot to be built as if it was Androids 2ndbootloader. --- tasks/bootfiles.mk | 12 ++++++++++++ tasks/kernel.mk | 1 - tasks/uboot.mk | 3 +-- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 tasks/bootfiles.mk
diff --git a/tasks/bootfiles.mk b/tasks/bootfiles.mk new file mode 100644 index 0000000..8489e69 --- /dev/null +++ b/tasks/bootfiles.mk @@ -0,0 +1,12 @@ + +ifeq ($(TARGET_USE_UBOOT),true) +bootfiles: $(PRODUCT_OUT)/u-boot.bin +endif + +bootfiles: + $(hide) mkdir -p $(PRODUCT_OUT)/boot +ifeq ($(TARGET_USE_UBOOT),true) + cp $(PRODUCT_OUT)/u-boot.bin $(PRODUCT_OUT)/boot +endif + +$(INSTALLED_BOOTTARBALL_TARGET): bootfiles \ No newline at end of file diff --git a/tasks/kernel.mk b/tasks/kernel.mk index 8d4cabf..a016d6e 100644 --- a/tasks/kernel.mk +++ b/tasks/kernel.mk @@ -4,5 +4,4 @@ android_kernel: make ARCH=arm CROSS_COMPILE=../$(TARGET_TOOLS_PREFIX) uImage
$(PRODUCT_OUT)/kernel: android_kernel - echo HUPP : $(PRODUCT_OUT) : $(TOP) : $(KERNEL_CONFIG) : $(PRODUCT_OUT)/kernel ln -sf ../../../../kernel/arch/arm/boot/uImage $(PRODUCT_OUT)/kernel \ No newline at end of file diff --git a/tasks/uboot.mk b/tasks/uboot.mk index 3d297c0..fc4a7da 100644 --- a/tasks/uboot.mk +++ b/tasks/uboot.mk @@ -1,6 +1,5 @@ android_uboot: - rm -fr $(PRODUCT_OUT)/obj/u-boot - mkdir $(PRODUCT_OUT)/obj/u-boot + mkdir -p $(PRODUCT_OUT)/obj/u-boot cd $(TOP)/u-boot &&\ make O=../$(PRODUCT_OUT)/obj/u-boot CROSS_COMPILE=arm-linux-gnueabi- $(UBOOT_CONFIG) &&\ make O=../$(PRODUCT_OUT)/obj/u-boot CROSS_COMPILE=arm-linux-gnueabi-