Merge bk://oe-devel.bkbits.net/openembedded
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>
Sun, 16 Jan 2005 03:40:07 +0000 (03:40 +0000)
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>
Sun, 16 Jan 2005 03:40:07 +0000 (03:40 +0000)
into bkbits.net:/repos/n/nslu2-linux/openembedded

2005/01/15 22:33:49-05:00 handhelds.org!kergoth
Adjust the unionfs modules cflags.

2005/01/15 20:29:04-05:00 handhelds.org!kergoth
Merge oe-devel@oe-devel.bkbits.net:openembedded
into handhelds.org:/home/kergoth/code/openembedded

2005/01/15 20:28:20-05:00 handhelds.org!kergoth
Remove the unnecessary 'chkhinge' from bootstrap on tosa.

2005/01/15 19:57:17-06:00 ti.com!kergoth
Adjust the unionfs build to add -DNODEBUG, which cuts the kernel module size in half.

BKrev: 41e9e217tUS1LC6e9u93oOrBAoAeMg

conf/machine/tosa.conf
packages/unionfs/unionfs-modules.inc
packages/unionfs/unionfs-modules_1.0.7.bb
packages/unionfs/unionfs-utils_1.0.7.bb
packages/unionfs/unionfs.inc

index 7396fe7..e92e026 100644 (file)
@@ -6,10 +6,10 @@ TARGET_ARCH = "arm"
 IPKG_ARCHS = "all arm ${MACHINE}"
 PREFERRED_PROVIDER_xserver = "xserver-kdrive"
 PREFERRED_PROVIDER_virtual/kernel = "openzaurus-pxa"
-BOOTSTRAP_EXTRA_DEPENDS += "wlan-ng-modules virtual/kernel hostap-modules orinoco-modules sharp-sdmmc-support chkhinge usbutils"
+BOOTSTRAP_EXTRA_DEPENDS += "wlan-ng-modules virtual/kernel hostap-modules orinoco-modules sharp-sdmmc-support usbutils"
 BOOTSTRAP_EXTRA_RDEPENDS += "wlan-ng-modules wlan-ng-utils kernel-module-acm kernel-module-evdev kernel-module-net-fd \
 kernel-module-pxa-bi kernel-module-registers kernel-module-storage-fd kernel-module-usb-ohci-tc6393 kernel-module-usb-storage \
-kernel hostap-modules-cs orinoco-modules-cs sharp-sdmmc-support kernel-module-pxa-bi modutils chkhinge kernel-module-ip-gre \
+kernel hostap-modules-cs orinoco-modules-cs sharp-sdmmc-support kernel-module-pxa-bi modutils kernel-module-ip-gre \
 kernel-module-irnet kernel-module-ipip kernel-module-usbcore kernel-module-usbdcore kernel-module-usbdmonitor"
 
 RRECOMMENDS += "kernel-module-usbdserial kernel-module-usbkbd kernel-module-usbmouse kernel-module-hid usbutils kernel-module-evdev"
index ab7852a..9083e45 100644 (file)
@@ -2,15 +2,27 @@ unionutils = "unionctl uniondbg"
 
 include unionfs.inc
 inherit module
-CFLAGS =+ "-D__KERNEL__ -DMODULE -I${STAGING_KERNEL_DIR}/include"
+
 EXTRA_OEMAKE = "'CC=${KERNEL_CC}' 'LD=${KERNEL_LD}' \
                'KERNELVER=${KERNEL_VERSION}' \
                'LINUXSRC=${STAGING_KERNEL_DIR}' \
                'CROSS_COMPILE=${TARGET_PREFIX}' \
-               'OS=${TARGET_OS}'"
+               'OS=${TARGET_OS}' \
+               ${@get_flags(d, bb)}"
+
+KCFLAGS = "-D__KERNEL__ -DMODULE -DFISTGEN \
+          -DUNIONFS_UNSUPPORTED -DNODEBUG \
+          -I. -I${STAGING_KERNEL_DIR}/include \
+          ${CFLAGS}"
+
+def get_flags(d, bb):
+       ret = ""
+       if bb.data.getVar('KERNEL_OBJECT_SUFFIX', d, 1) == '.ko':
+               return "'EXTRA_CFLAGS=%s'" % bb.data.getVar('KCFLAGS', d, 1)
+       return "'CFLAGS=%s'" % bb.data.getVar('KCFLAGS', d, 1)
 
 do_compile () {
-       unset CFLAGS LDFLAGS
+       unset LDFLAGS
        oe_runmake unionfs${KERNEL_OBJECT_SUFFIX}
 }
 
index 1c70248..ff5e378 100644 (file)
@@ -1,4 +1,4 @@
 include unionfs-modules.inc
 include unionfs_${PV}.inc
 
-PR = "r2"
+PR = "r3"
index e69de29..8d97fc7 100644 (file)
@@ -0,0 +1,4 @@
+include unionfs-utils.inc
+include unionfs_${PV}.inc
+
+PR = "r3"
index ffd4f4c..392a1cd 100644 (file)
@@ -10,5 +10,5 @@ SRC_URI = "ftp://ftp.fsl.cs.sunysb.edu/pub/unionfs/unionfs-${PV}.tar.gz \
 S = "${WORKDIR}/unionfs-${PV}"
 FILESPATH = "${FILE_DIRNAME}/unionfs-${PV}:${FILE_DIRNAME}/unionfs:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
 
-export UCFLAGS := "${CFLAGS}"
+export UCFLAGS := "${CFLAGS} -DNODEBUG"
 CFLAGS = "${BUILD_OPTIMIZATION}"