Merge pull request #102 from philips/bootengine-bump

feat(bootkernel): merge into regular kernel
This commit is contained in:
Greg Kroah-Hartman 2013-07-21 16:21:53 -07:00
commit 8edc46b399
13 changed files with 16 additions and 2256 deletions

View File

@ -104,7 +104,6 @@ RDEPEND="${RDEPEND}
RDEPEND="${RDEPEND}
sys-apps/findutils
sys-kernel/coreos-bootkernel
app-admin/sudo
app-admin/rsyslog
app-arch/gzip

View File

@ -170,12 +170,16 @@ CONFIG_MM_OWNER=y
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_INITRAMFS_SOURCE="bootengine.cpio"
CONFIG_INITRAMFS_ROOT_UID=0
CONFIG_INITRAMFS_ROOT_GID=0
CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
# CONFIG_RD_XZ is not set
# CONFIG_RD_LZO is not set
CONFIG_INITRAMFS_COMPRESSION_NONE=y
# CONFIG_INITRAMFS_COMPRESSION_GZIP is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y

View File

@ -240,12 +240,6 @@ cros-kernel2_src_configure() {
local config
local cfgarch="$(get_build_arch)"
if [ "$(get_boot_kernel)" = "true" ] ; then
boot="_boot"
else
boot=""
fi
if [ -n "${CHROMEOS_KERNEL_CONFIG}" ]; then
config="${S}/${CHROMEOS_KERNEL_CONFIG}"
else
@ -271,18 +265,16 @@ cros-kernel2_src_configure() {
chromeos/scripts/prepareconfig ${config} \
"$(get_build_cfg)" || die
else
config="$(defconfig_dir)/${cfgarch}_defconfig${boot}"
config="$(defconfig_dir)/${cfgarch}_defconfig"
ewarn "Can't prepareconfig, falling back to default " \
"${config}"
cp "${config}" "$(get_build_cfg)" || die
fi
fi
# if this is the boot kernel, copy the cpio initrd to the output build
# directory so we can tack it onto the kernel image itself.
if [ "$(get_boot_kernel)" = "true" ]; then
cp "${ROOT}"/usr/share/bootengine/bootengine.cpio "$(cros-workon_get_build_dir)" || die "copy of dracut cpio failed."
fi
# copy the cpio initrd to the output build directory so we can tack it
# onto the kernel image itself.
cp "${ROOT}"/usr/share/bootengine/bootengine.cpio "$(cros-workon_get_build_dir)" || die "copy of dracut cpio failed."
# Use default for any options not explitly set in splitconfig
yes "" | kmake oldconfig
@ -462,11 +454,7 @@ cros-kernel2_src_install() {
ln -sf $(basename "${zimage_bin}") zImage || die
fi
if [ ! -e "${D}/boot/vmlinuz" ]; then
if [ "$(get_boot_kernel)" = "false" ]; then
ln -sf "vmlinuz-${version}" "${D}/boot/vmlinuz" || die
else
ln -sf "vmlinuz-${version}" "${D}/boot/vmlinuz-boot_kernel" || die
fi
ln -sf "vmlinuz-${version}" "${D}/boot/vmlinuz" || die
fi
# Check the size of kernel image and issue warning when image size is near

View File

@ -0,0 +1 @@
move coreos-base/bootengine sys-kernel/bootengine

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="226fa7710b9439a236574f4cd5baa71f56d649f7"
CROS_WORKON_COMMIT="adea6485a0326889163dcacaf6f9d83e084721c8"
CROS_WORKON_PROJECT="coreos/bootengine"
CROS_WORKON_LOCALNAME="bootengine"
CROS_WORKON_OUTOFTREE_BUILD=1
@ -35,10 +35,9 @@ pkg_postinst() {
mount --rbind /sys ${ROOT}/sys
mount --rbind /run ${ROOT}/run
# --host-only "should" mean that we only include the stuff that this build
# root needs. The keyboard tables are all still being included, which we
# need to figure out how to remove someday.
chroot ${ROOT} dracut --host-only --force --no-kernel --fstab --no-compress /tmp/bootengine.cpio
# The keyboard tables are all still being included, which we need to
# figure out how to remove someday.
chroot ${ROOT} dracut --force --no-kernel --fstab --no-compress /tmp/bootengine.cpio
umount --recursive ${ROOT}/proc
umount --recursive ${ROOT}/dev

View File

@ -1,3 +0,0 @@
Go read the README in coreos-kernel for more information on how to setup the
git tree, this one is identical to that (for the kernel source), but it uses a
different kernel configuration.

View File

@ -1,25 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/vanilla-sources/vanilla-sources-3.7.5.ebuild,v 1.1 2013/01/28 13:18:54 ago Exp $
EAPI=4
CROS_WORKON_COMMIT="60757f78d6dbd86e935b4de43d61547174228cb7"
CROS_WORKON_REPO="git://github.com"
CROS_WORKON_PROJECT="coreos/linux"
inherit cros-workon cros-kernel2
DEPEND="
sys-devel/bc
coreos-base/bootengine
"
DESCRIPTION="CoreOS kernel"
HOMEPAGE="http://www.kernel.org"
SRC_URI="${KERNEL_URI}"
KEYWORDS="amd64 arm x86"
IUSE="deblob"
src_prepare() {
epatch "${FILESDIR}"/no_firmware.patch
}

View File

@ -1,37 +0,0 @@
From: Greg Kroah-Hartman <greg@kroah.com>
Subject: [PATCH] firmware: disable the firmware path entirely
We really don't want to build firmware images into the kernel package at
all, so rip out all references to the firmware directory that we can
fine.
diff --git a/Makefile b/Makefile
index 8818c95..0beba841 100644
--- a/Makefile
+++ b/Makefile
@@ -519,7 +519,7 @@ scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \
# Objects we will link into vmlinux / subdirs we need to visit
init-y := init/
-drivers-y := drivers/ sound/ firmware/
+drivers-y := drivers/ sound/
net-y := net/
libs-y := lib/
core-y := usr/
@@ -944,7 +944,6 @@ modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin
$(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
@$(kecho) ' Building modules, stage 2.';
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
- $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild
modules.builtin: $(vmlinux-dirs:%=%/modules.builtin)
$(Q)$(AWK) '!x[$$0]++' $^ > $(objtree)/modules.builtin
@@ -980,7 +979,6 @@ _modinst_:
# boot script depmod is the master version.
PHONY += _modinst_post
_modinst_post: _modinst_
- $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst
$(call cmd,depmod)
ifeq ($(CONFIG_MODULE_SIG), y)

View File

@ -10,6 +10,7 @@ inherit cros-workon cros-kernel2
DEPEND="
sys-devel/bc
sys-kernel/bootengine
"
DESCRIPTION="CoreOS kernel"