Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DESCRIPTION = "Linux kernel for Juniper platforms"
- SECTION = "kernel"
- LICENSE = "GPLv2"
- LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
- PV ?= "3.10.27"
- PV_ptxpmb-p5040 = "3.10.27"
- KERNEL_DEVICETREE_FLAGS_fslmachine = "-R 8"
- SRCREV ?= "ba9e75b6b8a79a0e383c30860141f0452ad6e32d"
- SRCREV_ptxpmb-p5040 = "52de17a2c2e76c7dc92198288c8836556a0322a8"
- BRANCH ?= "juniper/linux-3.10.y"
- BRANCH_ptxpmb-p5040 = "juniper/linux-3.10.y-staging"
- SRC_URI = "git://[email protected]:22/kernel/linux-stable.git;protocol=ssh;branch=${BRANCH} \
- ${PTX5000} \
- "
- SRC_URI_append_opus = " file://opus_dma.patch "
- PTX5000_ptxpmb-p5040 = ""
- KSRC ?= ""
- S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
- # make everything compatible for the time being
- COMPATIBLE_MACHINE = "(opus|re-64b|ptxpmb-p2020|ptxpmb-p5040|mohonpeak64|mohonpeak32)"
- EXTRA_OEMAKE_re-64b = "ARCH=x86_64"
- EXTRA_OEMAKE_opus = "ARCH=x86_64"
- KERNEL_DEFCONFIG_mohonpeak64 = "${S}/arch/x86/configs/jnx_x86_64_defconfig"
- KERNEL_DEFCONFIG_re-64b = "${S}/arch/x86/configs/jnx_x86_64_defconfig"
- EXTRA_OEMAKE_mohonpeak64 = "ARCH=x86_64"
- inherit kernel
- inherit externalsrc
- EXTERNALSRC = "/home/kraj/linux-stable"
- S = "${EXTERNALSRC}"
- require recipes-kernel/linux/linux-dtb.inc
- EXTRA_OEMAKE_append_re-64b = " ARCH=x86_64"
- do_configure_prepend () {
- # copy desired defconfig so we pick it up for the real kernel_do_configu
- cd ${S}
- cp ${KERNEL_DEFCONFIG} ${B}/.config
- if [ -n "${INITRAMFS_IMAGE}" ]
- then
- echo 'CONFIG_INITRAMFS_SOURCE="initramfs.cpio.gz"' >> ${B}/.config
- fi
- }
- # We want to track git commit SHAs in uname on the contrary Yocto kernel.bbclass
- # decides to punt SHA from it, so lets revert what kernel.bbclass is doing
- do_compile_prepend () {
- cd ${S}
- rm -f touch ${B}/.scmversion ${S}/.scmversion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement