mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 05:03:03 +01:00
Fixes bug: [YOCTO #1035] Fixes bug: [YOCTO #1036] Fixes gcc 4.6.0 compliation issues by importing the upstream change: Author: Michal Marek <mmarek@suse.cz> Date: Mon May 2 12:13:01 2011 +0000 kbuild: Fix passing -Wno-* options to gcc 4.4+ Starting with 4.4, gcc will happily accept -Wno-<anything> in the cc-option test and complain later when compiling a file that has some other warning. This rather unexpected behavior is intentional as per http://gcc.gnu.org/PR28322, so work around it by testing for support of the opposite option (without the no-). Introduce a new Makefile function cc-disable-warning that does this and update two uses of cc-option in the toplevel Makefile. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> (From OE-Core rev: 1d4c9412fb8226f882ef68223c9c5ec08cc2f5cc) Signed-off-by: Michal Marek <mmarek@suse.cz> Tested-by: Stephen Rothwell <sfr@canb.auug.org.au> Integrated-by: Bruce Ashfield <bruce.ashfield@windriver.com> :100644 100644 0ef00bd... 1d8e7e9... M Documentation/kbuild/makefiles.txt :100644 100644 7bd863e0.. 74bac80... M Makefile :100644 100644 ed2773e... ba25c44... M scripts/Kbuild.include Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
47 lines
1.6 KiB
BlitzBasic
47 lines
1.6 KiB
BlitzBasic
inherit kernel
|
|
require linux-yocto.inc
|
|
|
|
KMACHINE = "yocto/standard/base"
|
|
KMACHINE_qemux86 = "yocto/standard/common-pc/base"
|
|
KMACHINE_qemux86-64 = "yocto/standard/common-pc-64/base"
|
|
KMACHINE_qemuppc = "yocto/standard/qemu-ppc32"
|
|
KMACHINE_qemumips = "yocto/standard/mti-malta32-be"
|
|
KMACHINE_qemuarm = "yocto/standard/arm-versatile-926ejs"
|
|
|
|
KBRANCH = ${KMACHINE}
|
|
KMETA = meta
|
|
|
|
LINUX_VERSION ?= "2.6.37"
|
|
LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
|
|
|
|
SRCREV_machine_qemuarm = "8776b242fe2db7b4570e11496e9105b51212a446"
|
|
SRCREV_machine_qemumips = "8f8a5e034d7e98ed871fa7ed487fbf72a79229a5"
|
|
SRCREV_machine_qemuppc = "d9c6b3e576184f0c4223b6251c57b16ac1bac428"
|
|
SRCREV_machine_qemux86 = "b2afed7ecd54918b73db7f30062aaaf02fdaba54"
|
|
SRCREV_machine_qemux86-64 = "86bbbc079652d87392322fbfc14f6bd8792b0f38"
|
|
SRCREV_machine = "0974631b821b70aee3613723ed0d4d6ba8da91c6"
|
|
SRCREV_meta = "79669230fd82a3e7e254cf8b596a2388a4333e62"
|
|
|
|
PR = "r18"
|
|
PV = "${LINUX_VERSION}+git${SRCPV}"
|
|
SRCREV_FORMAT = "meta_machine"
|
|
|
|
SRC_URI = "git://git.yoctoproject.org/linux-yocto-2.6.37;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta"
|
|
|
|
COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
|
|
|
|
# Functionality flags
|
|
KERNEL_REVISION_CHECKING ?= "t"
|
|
KERNEL_FEATURES="features/netfilter"
|
|
KERNEL_FEATURES_append_qemux86=" cfg/sound"
|
|
KERNEL_FEATURES_append_qemux86-64=" cfg/sound"
|
|
|
|
YOCTO_KERNEL_META_DATA=t
|
|
|
|
# extra tasks
|
|
addtask kernel_link_vmlinux after do_compile before do_install
|
|
addtask validate_branches before do_patch after do_kernel_checkout
|
|
addtask kernel_configcheck after do_configure before do_compile
|
|
|
|
require linux-tools.inc
|