diff --git a/meta-citadel/recipes-kernel/citadel-kernel/citadel-kernel.inc b/meta-citadel/recipes-kernel/citadel-kernel/citadel-kernel.inc index 333e8fd..4893c9a 100644 --- a/meta-citadel/recipes-kernel/citadel-kernel/citadel-kernel.inc +++ b/meta-citadel/recipes-kernel/citadel-kernel/citadel-kernel.inc @@ -2,8 +2,18 @@ DESCRIPTION = "Citadel linux kernel" SECTION = "kernel" LICENSE = "GPLv2" +BUILD_LDFLAGS = "-L${STAGING_LIBDIR} \ + -Wl,-rpath-link,${STAGING_LIBDIR} \ + -Wl,-rpath,${STAGING_LIBDIR} \ + -Wl,-O1 \ + -Wl,--dynamic-linker=${STAGING_LIBDIR}/ld-linux-x86-64.so.2" + +BUILD_CFLAGS = "-O2 -pipe -v" + inherit kernel +EXTRA_OEMAKE = 'HOSTCC="x86_64-oe-linux-gcc --sysroot=${RECIPE_SYSROOT}" HOSTCXX="x86_64-oe-linux-g++ --sysroot=${RECIPE_SYSROOT} -isystem ${STAGING_INCDIR_NATIVE}" HOSTCFLAGS="${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTLDFLAGS="--sysroot=${RECIPE_SYSROOT} ${BUILD_LDFLAGS}"' + # if OVERRIDES contains citadel-powertop, then find defconfig in citadel-powertop dirctory # This config disables CONFIG_GRKERNSEC_KMEM and enables CONFIG_DEBUG_FS so that # powertop will work @@ -46,8 +56,7 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" # # coreutils for /usr/bin/seq which pax size overflow gcc plugin uses -DEPENDS += "openssl-native coreutils-native lz4-native" -HOST_EXTRACFLAGS += "-I${STAGING_INCDIR_NATIVE}" +DEPENDS += "libgcc openssl coreutils-native lz4-native" COMPATIBLE_MACHINE = "(intel-corei7-64)"