force rebuild of madwifi and rtl8192 driver after kernel update
[opendreambox.git] / meta-opendreambox / recipes-connectivity / realtek / realtek.inc
1 SUMMARY = "Driver for Realtek USB wireless devices"
2 HOMEPAGE = "http://www.realtek.com/"
3 LICENSE = "GPLv2"
4 PR = "r4"
5
6 SRC_URI += "http://dreamboxupdate.com/download/sources/${RTL_BASENAME}.tar.gz"
7
8 S = "${WORKDIR}/${RTL_BASENAME}"
9
10 inherit module siteinfo
11
12 EXTRA_OEMAKE = "CONFIG_${RTL_KCONFIG}=m"
13
14 do_configure() {
15         sed -e "s/^CONFIG_PLATFORM_I386_PC.*=.*y/EXTRA_CFLAGS += -DCONFIG_${@base_conditional('SITEINFO_ENDIANNESS', 'le', 'LITTLE', 'BIG', d)}_ENDIAN/" -i Makefile
16 }
17 do_compile() {
18         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
19         oe_runmake -C "${STAGING_KERNEL_DIR}" M="${S}" modules
20 }
21 do_install() {
22         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
23         oe_runmake -C "${STAGING_KERNEL_DIR}" M="${S}" DEPMOD="echo" INSTALL_MOD_PATH="${D}" modules_install
24 }