--- tasks/kernel.mk | 8 ++++++++ tasks/tarballs.mk | 9 +++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 tasks/kernel.mk
diff --git a/tasks/kernel.mk b/tasks/kernel.mk new file mode 100644 index 0000000..513bafa --- /dev/null +++ b/tasks/kernel.mk @@ -0,0 +1,8 @@ +android_kernel: + cd $(TOP)/kernel &&\ + make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- defconfig $(KERNEL_CONFIG) &&\ + make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- 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/tarballs.mk b/tasks/tarballs.mk index e6354fc..6547230 100644 --- a/tasks/tarballs.mk +++ b/tasks/tarballs.mk @@ -21,7 +21,16 @@ root_tar := $(PRODUCT_OUT)/root.tar INSTALLED_ROOTTARBALL_TARGET := $(root_tar).$(ROOT_TARBALL_FORMAT)
$(INSTALLED_ROOTTARBALL_TARGET): PRIVATE_ROOT_TAR := $(root_tar) + +ifneq ($(strip $(TARGET_NO_KERNEL)),true) +$(INSTALLED_ROOTTARBALL_TARGET): $(FS_GET_STATS) $(INTERNAL_RAMDISK_FILES) $(PRODUCT_OUT)/kernel + cp $(PRODUCT_OUT)/kernel $(PRODUCT_OUT)/root/kernel + $(build-roottarball-target) + +else $(INSTALLED_ROOTTARBALL_TARGET): $(FS_GET_STATS) $(INTERNAL_RAMDISK_FILES) $(build-roottarball-target) +endif +
roottarball: $(INSTALLED_ROOTTARBALL_TARGET) \ No newline at end of file
--- tasks/uboot.mk | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) create mode 100644 tasks/uboot.mk
diff --git a/tasks/uboot.mk b/tasks/uboot.mk new file mode 100644 index 0000000..3d297c0 --- /dev/null +++ b/tasks/uboot.mk @@ -0,0 +1,10 @@ +android_uboot: + rm -fr $(PRODUCT_OUT)/obj/u-boot + mkdir $(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- + +$(PRODUCT_OUT)/u-boot.bin: android_uboot + ln -sf obj/u-boot/u-boot.bin $(PRODUCT_OUT)/u-boot.bin +
On Tue, Apr 5, 2011 at 7:09 PM, Patrik Ryd patrik.ryd@linaro.org wrote:
tasks/uboot.mk | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) create mode 100644 tasks/uboot.mk
diff --git a/tasks/uboot.mk b/tasks/uboot.mk new file mode 100644 index 0000000..3d297c0 --- /dev/null +++ b/tasks/uboot.mk @@ -0,0 +1,10 @@ +android_uboot:
- rm -fr $(PRODUCT_OUT)/obj/u-boot
- mkdir $(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-
do we have to use the host "gnueabi" cross compiler? or could we use the TARGET_TOOLS_PREFIX arm-eabi- one instead for u-boot here?
On Tue, Apr 5, 2011 at 7:09 PM, Patrik Ryd patrik.ryd@linaro.org wrote:
tasks/kernel.mk | 8 ++++++++ tasks/tarballs.mk | 9 +++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 tasks/kernel.mk
diff --git a/tasks/kernel.mk b/tasks/kernel.mk new file mode 100644 index 0000000..513bafa --- /dev/null +++ b/tasks/kernel.mk @@ -0,0 +1,8 @@ +android_kernel:
- cd $(TOP)/kernel &&\
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- defconfig $(KERNEL_CONFIG) &&\
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage
here TARGET_TOOLS_PREFIX arm-eabi- toolchain could be used as well I guess. Maybe give this a try together with the u-boot one.
On 5 April 2011 22:52, Alexander Sack asac@linaro.org wrote:
On Tue, Apr 5, 2011 at 7:09 PM, Patrik Ryd patrik.ryd@linaro.org wrote:
tasks/kernel.mk | 8 ++++++++ tasks/tarballs.mk | 9 +++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 tasks/kernel.mk
diff --git a/tasks/kernel.mk b/tasks/kernel.mk new file mode 100644 index 0000000..513bafa --- /dev/null +++ b/tasks/kernel.mk @@ -0,0 +1,8 @@ +android_kernel:
- cd $(TOP)/kernel &&\
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- defconfig $(KERNEL_CONFIG) &&\
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage
here TARGET_TOOLS_PREFIX arm-eabi- toolchain could be used as well I guess. Maybe give this a try together with the u-boot one.
If I can assume* that TARGET_TOOLS_PREFIX is relative to the Android source root (normally is, unless you change it yourself) I could do
make ARCH=arm CROSS_COMPILE=../$(TARGET_TOOLS_PREFIX) defconfig $(KERNEL_CONFIG) &&\
Any better idea?
/Patrik
------- * Assumption is the mother of all fuckups (http://www.youtube.com/watch?v=wg4trPZFUwc)
--
- Alexander