kernel-uboot.bbclass 457 B

1234567891011121314151617181920
  1. uboot_prep_kimage() {
  2. if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
  3. vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux"
  4. linux_suffix=""
  5. linux_comp="none"
  6. else
  7. vmlinux_path="vmlinux"
  8. linux_suffix=".gz"
  9. linux_comp="gzip"
  10. fi
  11. ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin
  12. if [ "${linux_comp}" != "none" ] ; then
  13. gzip -9 linux.bin
  14. mv -f "linux.bin${linux_suffix}" linux.bin
  15. fi
  16. echo "${linux_comp}"
  17. }