From df204694e5f56d20006f4d0a88363198d0db029a Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sat, 30 Jul 2005 14:04:14 +0000 Subject: Fix at76c503a crosscompile. Thanks to wrichter --- packages/at76c503a/at76c503a-modules/.mtn2git_empty | 0 packages/at76c503a/at76c503a-modules/makefile.cc.patch | 11 +++++++++++ packages/at76c503a/at76c503a-modules_cvs.bb | 7 ++++--- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 packages/at76c503a/at76c503a-modules/.mtn2git_empty create mode 100644 packages/at76c503a/at76c503a-modules/makefile.cc.patch (limited to 'packages/at76c503a') diff --git a/packages/at76c503a/at76c503a-modules/.mtn2git_empty b/packages/at76c503a/at76c503a-modules/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/at76c503a/at76c503a-modules/makefile.cc.patch b/packages/at76c503a/at76c503a-modules/makefile.cc.patch new file mode 100644 index 0000000000..c7a41990d3 --- /dev/null +++ b/packages/at76c503a/at76c503a-modules/makefile.cc.patch @@ -0,0 +1,11 @@ +--- at76c503a/Makefile.old 2005-07-29 21:57:34.000000000 +0200 ++++ at76c503a/Makefile 2005-07-29 21:57:43.000000000 +0200 +@@ -9,7 +9,7 @@ + # the License, or (at your option) any later version. + # + +-CC=gcc ++#CC=gcc + + ifneq (,$(KVERS)) + KERNEL_VERSION=$(KVERS) diff --git a/packages/at76c503a/at76c503a-modules_cvs.bb b/packages/at76c503a/at76c503a-modules_cvs.bb index 9673e5fb1b..8f11aeeff3 100644 --- a/packages/at76c503a/at76c503a-modules_cvs.bb +++ b/packages/at76c503a/at76c503a-modules_cvs.bb @@ -1,14 +1,15 @@ SECTION = "base" LICENSE = "GPL" -SRC_URI = "cvs://anonymous@cvs.berlios.de/cvsroot/at76c503a;module=at76c503a" +SRC_URI = "cvs://anonymous@cvs.berlios.de/cvsroot/at76c503a;module=at76c503a \ + file://makefile.cc.patch;patch=1" S = "${WORKDIR}/at76c503a" PR = "r1" PV = "0.0cvs${CVSDATE}" inherit module -MODULES = "at76c503.o at76_usbdfu.o at76c503-i3861.o at76c503-rfmd.o at76c503-rfmd-acc.o \ - at76c505-rfmd.o at76c503-i3863.o at76c505-rfmd2958.o" +MODULES = "at76c503.ko at76_usbdfu.ko at76c503-i3861.ko at76c503-rfmd.ko at76c503-rfmd-acc.ko \ + at76c505-rfmd.ko at76c503-i3863.ko at76c505-rfmd2958.ko" pkg_postinst() { #!/bin/sh -- cgit v1.2.3 From 11960173ec932aa50eca16f19f6afb5b16e122c5 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 13:53:33 +0000 Subject: Fixed compilation for 2.4 and 2.6 (.o vs .ko). Fixes OE bug #190 --- packages/at76c503a/at76c503a-modules_cvs.bb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'packages/at76c503a') diff --git a/packages/at76c503a/at76c503a-modules_cvs.bb b/packages/at76c503a/at76c503a-modules_cvs.bb index 8f11aeeff3..5e56c4787a 100644 --- a/packages/at76c503a/at76c503a-modules_cvs.bb +++ b/packages/at76c503a/at76c503a-modules_cvs.bb @@ -3,13 +3,15 @@ LICENSE = "GPL" SRC_URI = "cvs://anonymous@cvs.berlios.de/cvsroot/at76c503a;module=at76c503a \ file://makefile.cc.patch;patch=1" S = "${WORKDIR}/at76c503a" -PR = "r1" +PR = "r2" PV = "0.0cvs${CVSDATE}" inherit module -MODULES = "at76c503.ko at76_usbdfu.ko at76c503-i3861.ko at76c503-rfmd.ko at76c503-rfmd-acc.ko \ - at76c505-rfmd.ko at76c503-i3863.ko at76c505-rfmd2958.ko" +MODULES = "at76c503 at76_usbdfu at76c503-i3861 at76c503-rfmd at76c503-rfmd-acc \ + at76c505-rfmd at76c503-i3863 at76c505-rfmd2958" +MODULES_EXTENSION = "o" +MODULES_EXTENSION_kernel26 = "ko" pkg_postinst() { #!/bin/sh @@ -26,8 +28,9 @@ update-modules || true do_install() { install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/ - for i in ${MODULES}; do install -m 0644 $i ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/$i; done - + for i in ${MODULES}; do + install -m 0644 $i.${MODULES_EXTENSION} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/ + done if [ "${MACHINE}" = "h3900" ]; then install -d ${D}${sysconfdir}/modutils echo "at76c503-rfmd" > ${D}${sysconfdir}/modutils/at76c503-rfmd -- cgit v1.2.3