Advertisement
Guest User

Untitled

a guest
Feb 5th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. DESCRIPTION = "Linux kernel for Juniper platforms"
  2. SECTION = "kernel"
  3. LICENSE = "GPLv2"
  4.  
  5. LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
  6.  
  7. PV ?= "3.10.27"
  8. PV_ptxpmb-p5040 = "3.10.27"
  9. KERNEL_DEVICETREE_FLAGS_fslmachine = "-R 8"
  10.  
  11. SRCREV ?= "ba9e75b6b8a79a0e383c30860141f0452ad6e32d"
  12. SRCREV_ptxpmb-p5040 = "52de17a2c2e76c7dc92198288c8836556a0322a8"
  13.  
  14. BRANCH ?= "juniper/linux-3.10.y"
  15. BRANCH_ptxpmb-p5040 = "juniper/linux-3.10.y-staging"
  16.  
  17. SRC_URI = "git://[email protected]:22/kernel/linux-stable.git;protocol=ssh;branch=${BRANCH} \
  18. ${PTX5000} \
  19. "
  20. SRC_URI_append_opus = " file://opus_dma.patch "
  21. PTX5000_ptxpmb-p5040 = ""
  22.  
  23.  
  24. KSRC ?= ""
  25. S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
  26. # make everything compatible for the time being
  27. COMPATIBLE_MACHINE = "(opus|re-64b|ptxpmb-p2020|ptxpmb-p5040|mohonpeak64|mohonpeak32)"
  28.  
  29.  
  30. EXTRA_OEMAKE_re-64b = "ARCH=x86_64"
  31. EXTRA_OEMAKE_opus = "ARCH=x86_64"
  32.  
  33. KERNEL_DEFCONFIG_mohonpeak64 = "${S}/arch/x86/configs/jnx_x86_64_defconfig"
  34. KERNEL_DEFCONFIG_re-64b = "${S}/arch/x86/configs/jnx_x86_64_defconfig"
  35. EXTRA_OEMAKE_mohonpeak64 = "ARCH=x86_64"
  36.  
  37. inherit kernel
  38. inherit externalsrc
  39. EXTERNALSRC = "/home/kraj/linux-stable"
  40. S = "${EXTERNALSRC}"
  41. require recipes-kernel/linux/linux-dtb.inc
  42.  
  43. EXTRA_OEMAKE_append_re-64b = " ARCH=x86_64"
  44.  
  45. do_configure_prepend () {
  46. # copy desired defconfig so we pick it up for the real kernel_do_configu
  47. cd ${S}
  48. cp ${KERNEL_DEFCONFIG} ${B}/.config
  49. if [ -n "${INITRAMFS_IMAGE}" ]
  50. then
  51. echo 'CONFIG_INITRAMFS_SOURCE="initramfs.cpio.gz"' >> ${B}/.config
  52. fi
  53. }
  54. # We want to track git commit SHAs in uname on the contrary Yocto kernel.bbclass
  55. # decides to punt SHA from it, so lets revert what kernel.bbclass is doing
  56.  
  57. do_compile_prepend () {
  58. cd ${S}
  59. rm -f touch ${B}/.scmversion ${S}/.scmversion
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement