wlan-ng: patch by Murray Jensen to differentiate between KERNEL_CC and CC
authorBruno Randolf <br1@subnet.at>
Mon, 18 Oct 2004 16:48:13 +0000 (16:48 +0000)
committerBruno Randolf <br1@subnet.at>
Mon, 18 Oct 2004 16:48:13 +0000 (16:48 +0000)
BKrev: 4173f3cdiOFKkacu1aIwzQFeuQ7jLA

wlan-ng/files/pass-kernel-cross.patch [new file with mode: 0644]
wlan-ng/wlan-ng-modules_0.2.1pre22.oe

diff --git a/wlan-ng/files/pass-kernel-cross.patch b/wlan-ng/files/pass-kernel-cross.patch
new file mode 100644 (file)
index 0000000..e69de29
index cc1c600..b5b8a10 100644 (file)
@@ -1,14 +1,16 @@
 SECTION = "base"
 DESCRIPTION = "linux-wlan-ng (prism2.x, prism3, pcmcia, pci, usb) driver for 11Mbps wireless lan cards"
 DEPENDS = "virtual/kernel"
+RRECOMMENDS = "wlan-ng-utils"
 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
 LICENSE = "GPL"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-${PV}.tar.bz2 \
        file://no-compat.patch;patch=1 \
        file://Ambit_usb.patch;patch=1 \
        file://scripts-makefile-hostcc.diff;patch=1;pnum=0 \
+       file://pass-kernel-cross.patch;patch=1;pnum=0 \
        file://wlan-ng.modutils \
        file://wlan.agent \
        file://config.in \
@@ -34,6 +36,19 @@ do_configure() {
        oe_runmake LINUX_SRC=${KERNEL_SOURCE} auto_config
 }
 
+# override module_do_install in module.oeclass - dont want to set CC and
+# LD unless actually compiling the kernel modules - there are other user
+# level programs to be compiled. Note we need to use same compiler
+# that was used to build the kernel
+do_compile() {
+       unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+       oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR}   \
+                  KERNEL_SRC=${STAGING_KERNEL_DIR}    \
+                  KERNEL_VERSION=${KERNEL_VERSION}    \
+                  KERNEL_CC="${KERNEL_CC}" KERNEL_LD="${KERNEL_LD}" \
+                  ${MAKE_TARGETS}
+}
+
 do_install() {
        oe_runmake install DESTDIR=${D} TARGET_MODDIR=
        mkdir -p ${D}/etc/modutils/