DESCRIPTION = "3.2 Linux kernel for the Pandora handheld console" SECTION = "kernel" LICENSE = "GPLv2" COMPATIBLE_MACHINE = "omap3-pandora" PACKAGE_ARCH = "${MACHINE_ARCH}" PR = "r7" # we already build 2.6 kernel using OE infrastructure, and # as we don't know how to build another one into the same image # (especially out-of-tree modules), we just package manually prebuilt one # git://git.openpandora.org/pandora-kernel.git , branch pandora-3.2 # commit: db4bd663ea5894d516f75d7a5973303998247f91 SRC_URI = "http://notaz.gp2x.de/misc/pnd/oe_rootfs_extra_r7.tar.bz2" S = "${WORKDIR}" do_install() { cp -a ${S}/boot ${D}/ cp -a ${S}/lib ${D}/ } FILES_${PN} = "boot lib" pkg_postinst_${PN} () { # this will cause depmod to be run on next boot rm -f /lib/modules/`uname -r`/modules.dep sync if ! grep -q '[[:blank:]]/[[:blank:]]*ubifs' /proc/mounts; then test -e /media/PANDORABOOT/uImage && oldkernel=/media/PANDORABOOT/uImage test -e /media/PANDORABOOT/uImage-3 && oldkernel=/media/PANDORABOOT/uImage-3 test -e /media/BOOT/uImage && oldkernel=/media/BOOT/uImage test -e /media/BOOT/uImage-3 && oldkernel=/media/BOOT/uImage-3 if test -n "$oldkernel"; then cp /boot/uImage-3 $oldkernel msg="Updated kernel has beed copied to ${oldkernel}. \ If this location is wrong, copy /boot/uImage-3 to the location \ where your kernel is booted from (usually set in boot.txt / autoboot.txt)." else msg="The kernel in /boot/uImage-3 has been updated. You need to \ copy it to the location where kernel is booted from (usually set in \ boot.txt / autoboot.txt) or the system might not start after reboot." fi sync if test -n "$DISPLAY"; then zenity --info --text "$msg" else echo "==================================" echo "$msg" sleep 5 fi fi } PACKAGE_STRIP = "no" SRC_URI[md5sum] = "37d538020a4b39de549e182ebe4b8e52" SRC_URI[sha256sum] = "e007b755a09134f5995c954ed251f822749bf94ddf7ab4c3f773f0802b2669e9"