From 6b084b4f47904135bcbe67c97262144460e7a24f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 7 Jun 2010 12:30:08 +0200 Subject: add basic MacOS X support --- mk/build.mk | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'mk') diff --git a/mk/build.mk b/mk/build.mk index cc6c447ff..c143bbab2 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -270,6 +270,9 @@ endif ifeq (${OStype},NetBSD) @echo ADK_HOST_NETBSD=y > $(TOPDIR)/.defconfig endif +ifeq (${OStype},Darwin) + @echo ADK_HOST_DARWIN=y > $(TOPDIR)/.defconfig +endif ifneq (,$(filter CYGWIN%,${OStype})) @echo ADK_HOST_CYGWIN=y > $(TOPDIR)/.defconfig endif @@ -278,10 +281,10 @@ endif |grep -i "$(TARGET)"\$$ \ |sed -e "s#^config \(.*\)#\1=y#" \ >> $(TOPDIR)/.defconfig; \ - for symbol in ${DEFCONFIG}; do \ - echo $$symbol >> $(TOPDIR)/.defconfig; \ - done; \ fi + for symbol in ${DEFCONFIG}; do \ + echo $$symbol >> $(TOPDIR)/.defconfig; \ + done; \ @if [ ! -z "$(FS)" ];then \ grep "^config" target/Config.in \ |grep -i "$(FS)" \ @@ -338,6 +341,9 @@ endif ifeq (${OStype},NetBSD) @echo ADK_HOST_NETBSD=y > $(TOPDIR)/all.config endif +ifeq (${OStype},Darwin) + @echo ADK_HOST_DARWIN=y > $(TOPDIR)/all.config +endif ifneq (,$(filter CYGWIN%,${OStype})) @echo ADK_HOST_CYGWIN=y > $(TOPDIR)/all.config endif @@ -346,10 +352,10 @@ endif |grep -i "$(TARGET)"\$$ \ |sed -e "s#^config \(.*\)#\1=y#" \ >> $(TOPDIR)/all.config; \ - for symbol in ${DEFCONFIG}; do \ - echo $$symbol >> $(TOPDIR)/all.config; \ - done; \ fi + for symbol in ${DEFCONFIG}; do \ + echo $$symbol >> $(TOPDIR)/all.config; \ + done; \ @if [ ! -z "$(FS)" ];then \ grep "^config" target/Config.in \ |grep -i "$(FS)" \ -- cgit v1.2.3 From 97c636279c04e0d01c64b2ba0a1f76b8a1cc5d48 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 8 Jun 2010 10:40:07 +0200 Subject: fix checksum and some typos --- mk/build.mk | 8 ++++---- toolchain/binutils/Makefile.inc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mk') diff --git a/mk/build.mk b/mk/build.mk index 359569826..0d807076a 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -284,9 +284,9 @@ endif |sed -e "s#^config \(.*\)#\1=y#" \ >> $(TOPDIR)/.defconfig; \ fi - for symbol in ${DEFCONFIG}; do \ + @for symbol in ${DEFCONFIG}; do \ echo $$symbol >> $(TOPDIR)/.defconfig; \ - done; \ + done @if [ ! -z "$(FS)" ];then \ grep "^config" target/Config.in \ |grep -i "$(FS)" \ @@ -355,9 +355,9 @@ endif |sed -e "s#^config \(.*\)#\1=y#" \ >> $(TOPDIR)/all.config; \ fi - for symbol in ${DEFCONFIG}; do \ + @for symbol in ${DEFCONFIG}; do \ echo $$symbol >> $(TOPDIR)/all.config; \ - done; \ + done @if [ ! -z "$(FS)" ];then \ grep "^config" target/Config.in \ |grep -i "$(FS)" \ diff --git a/toolchain/binutils/Makefile.inc b/toolchain/binutils/Makefile.inc index 7a91b2a69..0325a2293 100644 --- a/toolchain/binutils/Makefile.inc +++ b/toolchain/binutils/Makefile.inc @@ -4,7 +4,7 @@ PKG_NAME:= binutils PKG_VERSION:= 2.20.51 PKG_RELEASE:= 1 -PKG_MD5SUM:= 70971093cfa11bd943e06eccb2fd8914 +PKG_MD5SUM:= 74a7716095e031c8462137ca26ff5472 PKG_SITES:= ftp://sourceware.org/pub/binutils/snapshots/ #PKG_SITES:= ${MASTER_SITE_GNU:=binutils/} DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2 -- cgit v1.2.3 From b867ee3e06128d820ff7ffdeeee07a6bf749e584 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 10 Jun 2010 13:34:27 +0200 Subject: add basic support for wireless driver in bcm47xx devices --- mk/modules.mk | 4 ++++ package/Config.in | 1 + package/b43-firmware/Makefile | 26 ++++++++++++++++++++++++++ target/Config.in | 4 ++++ target/linux/config/Config.in.netdevice | 12 +++++++++++- 5 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 package/b43-firmware/Makefile (limited to 'mk') diff --git a/mk/modules.mk b/mk/modules.mk index a7fc49d8c..dbf651738 100644 --- a/mk/modules.mk +++ b/mk/modules.mk @@ -70,6 +70,10 @@ $(eval $(call KMOD_template,P54_COMMON,p54-common,\ $(MODULES_DIR)/kernel/drivers/net/wireless/p54/p54common \ ,68)) +$(eval $(call KMOD_template,B43,b43,\ + $(MODULES_DIR)/kernel/drivers/net/wireless/b43/b43 \ +,70)) + $(eval $(call KMOD_template,P54_USB,p54-usb,\ $(MODULES_DIR)/kernel/drivers/net/wireless/p54/p54usb \ ,70)) diff --git a/package/Config.in b/package/Config.in index d6553882e..e9541dc22 100644 --- a/package/Config.in +++ b/package/Config.in @@ -593,6 +593,7 @@ endmenu menu "Wireless" source "package/aircrack-ng/Config.in" +source "package/b43-firmware/Config.in" source "package/chillispot/Config.in" source "package/hostapd/Config.in" source "package/iw/Config.in" diff --git a/package/b43-firmware/Makefile b/package/b43-firmware/Makefile new file mode 100644 index 000000000..efd88cc92 --- /dev/null +++ b/package/b43-firmware/Makefile @@ -0,0 +1,26 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= b43-firmware +PKG_VERSION:= 1.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 37c8d2c029a7e5b82f4433a6fa1e2ee5 +PKG_DESCR:= firmware for b43 wireless cards +PKG_SECTION:= sys +PKG_SITES:= http://openadk.org/distfiles/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,B43_FIRMWARE,b43-firmware,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE:= manual +BUILD_STYLE:= manual +INSTALL_STYLE:= manual + +do-install: + ${INSTALL_DIR} ${IDIR_B43_FIRMWARE}/lib/firmware + ${CP} ${WRKBUILD}/* ${IDIR_B43_FIRMWARE}/lib/firmware/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/target/Config.in b/target/Config.in index d9678fc9a..c7fa48685 100644 --- a/target/Config.in +++ b/target/Config.in @@ -11,6 +11,9 @@ config ADK_TARGET_WITH_USB config ADK_TARGET_WITH_PCI bool +config ADK_TARGET_WITH_SSB + bool + config ADK_TARGET_WITH_MINIPCI bool @@ -329,6 +332,7 @@ config ADK_LINUX_MIPS_AG241 config ADK_LINUX_MIPS_BRCM bool "Broadcom BCM47xx based routers" + select ADK_TARGET_WITH_SSB select ADK_KERNEL_NETDEVICES select ADK_KERNEL_NET_PCI select ADK_KERNEL_NET_ETHERNET diff --git a/target/linux/config/Config.in.netdevice b/target/linux/config/Config.in.netdevice index 043c698d9..09be1d34d 100644 --- a/target/linux/config/Config.in.netdevice +++ b/target/linux/config/Config.in.netdevice @@ -160,7 +160,7 @@ config ADK_MOD_KERNEL_MAC80211 default n menu "Wireless card support" -depends on ADK_TARGET_WITH_MINIPCI || ADK_TARGET_WITH_PCI || ADK_TARGET_WITH_USB +depends on ADK_TARGET_WITH_MINIPCI || ADK_TARGET_WITH_PCI || ADK_TARGET_WITH_USB || ADK_TARGET_WITH_SSB config ADK_KERNEL_MAC80211_DEBUG_MENU boolean @@ -227,6 +227,16 @@ config ADK_KERNEL_ATH5K_DEBUG parameter. For example: insmod ath5k.ko debug=0x00000400 +config ADK_KPACKAGE_KMOD_B43 + prompt "kmod-b43..................... Broadcom B43xx wireless cards" + tristate + depends on ADK_KPACKAGE_KMOD_MAC80211 + select ADK_KPACKAGE_KMOD_FW_LOADER + depends on ADK_TARGET_WITH_SSB || ADK_TARGET_WITH_MINIPCI + default n + help + Driver for Broadcom B43xx wireless chips. + config ADK_KPACKAGE_KMOD_P54_USB prompt "kmod-p54-usb................. Prism54 USB support" tristate -- cgit v1.2.3 From 35d2021f0029a4e1cb2cb9c3ae9996cd78f8d245 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 12 Jun 2010 22:16:05 +0200 Subject: enable wireless for lemote --- mk/modules.mk | 4 ++++ target/Config.in | 1 + target/linux/config/Config.in.netdevice | 9 +++++++++ 3 files changed, 14 insertions(+) (limited to 'mk') diff --git a/mk/modules.mk b/mk/modules.mk index dbf651738..7322870c8 100644 --- a/mk/modules.mk +++ b/mk/modules.mk @@ -70,6 +70,10 @@ $(eval $(call KMOD_template,P54_COMMON,p54-common,\ $(MODULES_DIR)/kernel/drivers/net/wireless/p54/p54common \ ,68)) +$(eval $(call KMOD_template,RTL8187B,rtl8187b,\ + $(MODULES_DIR)/kernel/drivers/net/wireless/rtl8187b/rtl8187b \ +,70)) + $(eval $(call KMOD_template,B43,b43,\ $(MODULES_DIR)/kernel/drivers/net/wireless/b43/b43 \ ,70)) diff --git a/target/Config.in b/target/Config.in index ab77c2249..d8b816eee 100644 --- a/target/Config.in +++ b/target/Config.in @@ -290,6 +290,7 @@ config ADK_LINUX_MIPS64_LEMOTE select ADK_TARGET_WITH_PCI select ADK_TARGET_WITH_RTC select ADK_PACKAGE_KMOD_USB_CONTROLLER + select ADK_KPACKAGE_KMOD_MAC80211 help Lemote Subnotebook. http://www.lemote.com/english/index.html diff --git a/target/linux/config/Config.in.netdevice b/target/linux/config/Config.in.netdevice index 09be1d34d..5b5a6e009 100644 --- a/target/linux/config/Config.in.netdevice +++ b/target/linux/config/Config.in.netdevice @@ -237,6 +237,15 @@ config ADK_KPACKAGE_KMOD_B43 help Driver for Broadcom B43xx wireless chips. +config ADK_KPACKAGE_KMOD_RTL8187B + prompt "kmod-rtl8187b................ Realtek RTL8187B wireless cards" + tristate + depends on ADK_KPACKAGE_KMOD_MAC80211 + depends on ADK_LINUX_MIPS64_LEMOTE + default y + help + Driver for Realtek RTL8187B wireless chips. + config ADK_KPACKAGE_KMOD_P54_USB prompt "kmod-p54-usb................. Prism54 USB support" tristate -- cgit v1.2.3