Skip to content

Instantly share code, notes, and snippets.

@kraj
Created September 28, 2012 19:17
Show Gist options
  • Save kraj/3801635 to your computer and use it in GitHub Desktop.
Save kraj/3801635 to your computer and use it in GitHub Desktop.
inherit kernel
require recipes-kernel/linux/linux-dtb.inc
DESCRIPTION = "Linux kernel with full rootfs for Freescale platforms"
SECTION = "kernel"
LICENSE = "GPLv2"
require recipes-kernel/linux/linux-qoriq-sdk.inc
do_configure_prepend() {
# copy desired defconfig so we pick it up for the real kernel_do_configure
cp ${KERNEL_DEFCONFIG} ${B}/.config.tmp
echo 'CONFIG_INITRAMFS_SOURCE="initramfs.cpio.gz"' >> ${B}/.config.tmp
echo 'CONFIG_INITRAMFS_ROOT_UID=0' >> ${B}/.config.tmp
echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> ${B}/.config.tmp
echo 'CONFIG_INITRAMFS_COMPRESSION_GZIP=y' >> ${B}/.config.tmp
mv ${B}/.config.tmp ${B}/.config
}
INITRAMFS_TASK = "do_configure"
INITRAMFS_IMAGE = "core-image-minimal"
PROVIDES = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment