a pastebin project

Meins

  1. DESCRIPTION = "Hack&Dev's Linux kernel for Palm devices."
  2. HOMEPAGE = "http://www.hackndev.com/"
  3. SECTION = "kernel"
  4. LICENSE = "GPL"
  5. PR = "r13"
  6.  
  7. COMPATIBLE_MACHINE = "(palmld|palmtc|palmtt3|palmtt5|palmtx|palmz31|palmz72|palmt650)"
  8.  
  9. #SRC_URI = "git://git.hackndev.com/git/linux-hnd;protocol=git \
  10. #          file://defconfig"
  11. SRC_URI = "file://defconfig"
  12.  
  13. #SRC_URI_append_palmtx += "http://www.busybox.net/downloads/busybox-1.1.0.tar.bz2 \
  14. #                       file://init \
  15. #                         file://initramfs_list \
  16. #                         file://busybox-config"
  17.  
  18. S = "${WORKDIR}/linux-hnd"
  19.  
  20. #S = "${WORKDIR}/trunk"
  21.  
  22. K_MAJOR = "2"
  23. K_MINOR = "6"
  24. K_MICRO = "21"
  25. HHV="hnd3"
  26. PV = "${K_MAJOR}.${K_MINOR}.${K_MICRO}-${HHV}"
  27.  
  28. inherit kernel
  29.  
  30. do_fetch() {
  31.         cd ${WORKDIR}
  32.         git-clone http://git.hackndev.com/git/linux-hnd;protocol=git
  33. }
  34.  
  35. do_configure() {
  36.  
  37.         if [ -f ${WORKDIR}/defconfig ]; then
  38.                 install -m 0644 ${WORKDIR}/defconfig ${S}/.config || die "No configuration for ${MACHINE} available."
  39.         else
  40.                 install -m 0644 ${S}/arch/arm/configs/${MACHINE}_defconfig ${S}/.config \
  41.                         || die "No default configuration for ${MACHINE} available."
  42.         fi
  43.  
  44.         if [ "${TARGET_OS}" == "linux-gnueabi" -o  "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then
  45.                 echo "CONFIG_AEABI=y"                   >> ${S}/.config
  46.                 echo "CONFIG_OABI_COMPAT=y"             >> ${S}/.config
  47.         else
  48.                 echo "# CONFIG_AEABI is not set"        >> ${S}/.config
  49.                 echo "# CONFIG_OABI_COMPAT is not set"  >> ${S}/.config
  50.         fi
  51.  
  52.         if [ -f ${WORKDIR}/initramfs_list ]; then
  53.                 install -m 0644 ${WORKDIR}/busybox-config ${WORKDIR}/busybox-1.1.0/.config \
  54.                         || die "No busybox configuration available."
  55.  
  56.                 echo "CROSS_COMPILER_PREFIX=\"${TARGET_PREFIX}\"" >> ${WORKDIR}/busybox-1.1.0/.config
  57.                 echo "USING_CROSS_COMPILER=y" >> ${WORKDIR}/busybox-1.1.0/.config
  58.  
  59.                 MY_UID=`id -u`
  60.                 MY_GID=`id -g`
  61.  
  62.                 echo "CONFIG_INITRAMFS_SOURCE=\"../initramfs_list\"" >> ${S}/.config
  63.                 echo "CONFIG_INITRAMFS_ROOT_UID=${MY_UID}" >> ${S}/.config
  64.                 echo "CONFIG_INITRAMFS_ROOT_GID=${MY_GID}" >> ${S}/.config
  65.         else
  66.                 echo "CONFIG_INITRAMFS_SOURCE=\"\"" >> ${S}/.config
  67.                 echo "CONFIG_INITRAMFS_ROOT_UID=0" >> ${S}/.config
  68.                 echo "CONFIG_INITRAMFS_ROOT_GID=0" >> ${S}/.config
  69.  
  70.         fi
  71.  
  72.         yes '' | oe_runmake oldconfig
  73.  
  74. }
  75.  
  76.  
  77. do_compile_prepend() {
  78.         if [ -f ${WORKDIR}/initramfs_list ]; then
  79.                 cd ${WORKDIR}/busybox-1.1.0
  80.                 oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}'
  81.                 cd -
  82.         fi
  83. }
  84.  
  85. do_deploy() {
  86.         install -d ${DEPLOY_DIR_IMAGE}
  87.         install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}
  88. }   
  89.  
  90. do_deploy[dirs] = "${S}"
  91.  
  92. addtask deploy before do_build after do_compile

advertising

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords.

worth-right
fantasy-obligation