propagate from branch 'org.openembedded.dev' (head f7531c375389681cc06ea3169fea009301...
authorKoen Kooi <koen@openembedded.org>
Fri, 30 Nov 2007 12:13:18 +0000 (12:13 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 30 Nov 2007 12:13:18 +0000 (12:13 +0000)
            to branch 'org.openembedded.dev.avr32' (head f1af8a59e078436ab2999eef666d653dd9d4ed05)

1  2 
packages/linux/linux.inc
packages/linux/linux_2.6.23.bb

@@@ -85,11 -85,6 +85,10 @@@ do_configure_prepend() 
          yes '' | oe_runmake oldconfig
  }
  
- do_configure_append_avr32() {
++fdo_configure_append_avr32() {
 +        sed -i -e s:-mno-pic::g arch/avr32/Makefile
 +}
 +
  # Support checking the kernel size since some kernels need to reside in partitions
  # with a fixed length or there is a limit in transferring the kernel to memory
  do_sizecheck() {
              if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
                      rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
                      die  "This kernel (size=$size) is too big for your device. Please reduce the size of the kernel by making more of it modular."
--            fi
++a
          fi
  }
  
- do_install_prepend() {
-         if test -e arch/${ARCH}/boot/Image ; then
-              ln -f arch/${ARCH}/boot/Image arch/${ARCH}/boot/uImage
-         fi
-         if test -e arch/${ARCH}/boot/images/uImage ; then
-              ln -f arch/${ARCH}/boot/images/uImage arch/${ARCH}/boot/uImage
-         fi
+ UBOOT_ENTRYPOINT ?= "20008000"
  
-         if test -e arch/${ARCH}/kernel/vmlinux.lds ; then
-              ln -f arch/${ARCH}/kernel/vmlinux.lds arch/${ARCH}/boot/vmlinux
+ do_compile_append() {
+     if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then 
+         if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
 -            ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
++            ${OBJCOPY} -O binary -R .naote -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
+             uboot-mkimage -A ${ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
+             rm -f linux.bin
+         else
+             ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
+             rm -f linux.bin.gz
+             gzip -9 linux.bin
+             uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage
+             rm -f linux.bin.gz
          fi
+     fi
  }
  
- UBOOT_ENTRYPOINT ?= "20008000"
  KERNEL_IMAGE_BASE_NAME = "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
  KERNEL_IMAGE_SYMLINK_NAME = "${KERNEL_IMAGETYPE}-${MACHINE}"
  
Simple merge