summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/kernel-yocto.bbclass5
-rw-r--r--meta/classes/kernel.bbclass2
2 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 4ac3a39e47..82d80741a9 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -275,6 +275,9 @@ addtask kernel_metadata after do_validate_branches do_unpack before do_patch
275do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" 275do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot"
276do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot" 276do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot"
277 277
278do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot"
279do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot"
280do_kernel_configme[depends] += "bc-native:do_populate_sysroot bison-native:do_populate_sysroot"
278do_kernel_configme[dirs] += "${S} ${B}" 281do_kernel_configme[dirs] += "${S} ${B}"
279do_kernel_configme() { 282do_kernel_configme() {
280 set +e 283 set +e
@@ -304,7 +307,7 @@ do_kernel_configme() {
304 bbfatal_log "Could not find configuration queue (${meta_dir}/config.queue)" 307 bbfatal_log "Could not find configuration queue (${meta_dir}/config.queue)"
305 fi 308 fi
306 309
307 CFLAGS="${CFLAGS} ${TOOLCHAIN_OPTIONS}" ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs} > ${meta_dir}/cfg/merge_config_build.log 2>&1 310 CFLAGS="${CFLAGS} ${TOOLCHAIN_OPTIONS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}" CC="${KERNEL_CC}" ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs} > ${meta_dir}/cfg/merge_config_build.log 2>&1
308 if [ $? -ne 0 ]; then 311 if [ $? -ne 0 ]; then
309 bbfatal_log "Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}" 312 bbfatal_log "Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}"
310 fi 313 fi
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 68d218584a..972ac52814 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -494,7 +494,7 @@ sysroot_stage_all () {
494 : 494 :
495} 495}
496 496
497KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} O=${B} oldnoconfig" 497KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} oldnoconfig"
498 498
499python check_oldest_kernel() { 499python check_oldest_kernel() {
500 oldest_kernel = d.getVar('OLDEST_KERNEL') 500 oldest_kernel = d.getVar('OLDEST_KERNEL')