Re: [OpenWrt-Devel] [PATCH 1/1] [polarssl] Fix build failures due to PKG_NAME != dir name

2015-08-16 Thread Daniel Dickinson
I have confirmed this issue exists in trunk (although I had no issue 
with CC) and have filed the patch in ticket #20340 
(https://dev.openwrt.org/ticket/20340)


On 2015-08-12 12:21 AM, Yousong Zhou wrote:

On 11 August 2015 at 10:00, Yousong Zhou  wrote:

On 2 August 2015 at 19:46, Daniel Dickinson
 wrote:

Packages that depend on PolarSSL fail to build because polarssl's InstallDev
section never actually gets executed because (prior to this patch) the package
name does not match the subdir the package is in (presumably due to upstream
name change).  As a workaround I have changed the package name back to
polarssl and used a new variable SRC_PKG_NAME for the purposes of downloading
the upstream tarball and creating PKG_BUILD_DIR.



Nice catch, but only setting PKG_BUILD_DIR should be enough to fix
this.  No need to introduce a new variable.



Hello, Daniel

After a second look on the code, I didn't get why there was a problem.
Anyway, openvpn-polarssl built and run fine in my environment.

 yousong


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 00/25] ramips: massive code cleanups

2015-08-16 Thread John Crispin
Hi,

just merged the whole lot. thanks a lot. what do you want to do next
lantiq or ar71xx ? :) personally i would prefer ar71xx ;)

John

On 05/08/2015 20:30, Piotr Dymacz wrote:
> The following changes fix different mistakes in ramips target and try to make 
> the code more clean and consistent.
> 
> The patches affect:
>  * dts{,i} files
>  * base-files/* scripts
>  * image Makefile
>  * subtargets *.mk profile files
> 
> Changes in v2 of the series:
>  * rebased to r46566
>  * use the upstream convention for LED naming
>  * more fixes in dts{,i} files
>  * patches are now ordered more logically
>  * patches are now better described
>  * additional fixes related with devices names
>  * big patches related with particular devices are not combined together, for 
> easy review
> 
> Piotr Dymacz (25):
>   ramips: fix indentation and other mistakes in .dts{,i} files
>   ramips: fix Zbtlink ZBT-WR8305RT board name
>   ramips: fix Asus WL-330N{,3G} boards names
>   ramips: fix Asus RP-N53 and Lenovo Y1{,S} image names
>   ramips: fix Xiaomi MiWiFi Mini board, image and profile names
>   ramips: fix UPVEL model names
>   ramips: fix Asus RT-N56U dts filename
>   ramips: fix Belkin F7C027 image name
>   ramips: fix Argus ATP-52B board and image names
>   ramips: fix Sitecom WL-341v3 board and image names
>   ramips: fix Olimex models, images and profiles names
>   ramips: fix Aigale Ai-BR100 dts and profile names
>   ramips: fix Tenda W150M model name
>   ramips: fix Edimax BR-6425 board name
>   ramips: fix Omnima models, images and profiles names
>   ramips: fix Buffalo WMR-300 dts, board, image and profile names
>   ramips: fix 7Links PX-4885 dts{,i}, board, image and profile names
>   ramips: remove old code for Edimax BR-6524N
>   ramips: fix various mistakes in subtargets *.mk profiles
>   ramips: remove leading spaces, sort boards and optimize
> base-files/lib/ramips.sh
>   ramips: be consistent with case statement in
> base-files/lib/upgrade/platform.sh
>   ramips: fix indentation, case statements structure and optimize
> base-files/etc/board.d/02_network
>   ramips: remove unnecessary LED declaration for WT1520 in diag.sh
>   ramips: use consistent naming scheme for LEDs
>   ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds
> scripts
> 
>  target/linux/ramips/base-files/etc/board.d/01_leds | 480 
> ++---
>  .../linux/ramips/base-files/etc/board.d/02_network | 391 -
>  target/linux/ramips/base-files/etc/diag.sh | 338 ++-
>  target/linux/ramips/base-files/lib/ramips.sh   | 436 +--
>  .../ramips/base-files/lib/upgrade/platform.sh  | 234 +-
>  target/linux/ramips/dts/3G-6200N.dts   |  12 +-
>  target/linux/ramips/dts/3G-6200NL.dts  |   5 +-
>  target/linux/ramips/dts/3G150B.dts |  10 +-
>  target/linux/ramips/dts/3G300M.dts |  21 +-
>  target/linux/ramips/dts/A5-V11.dts |   6 +
>  target/linux/ramips/dts/AI-BR100.dts   | 109 +
>  target/linux/ramips/dts/AIBR100.dts| 106 -
>  target/linux/ramips/dts/AIR3GII.dts|   8 +-
>  target/linux/ramips/dts/ALL0239-3G.dts |  16 +-
>  target/linux/ramips/dts/ALL0256N-4M.dts|   5 +
>  target/linux/ramips/dts/ALL0256N-8M.dts|   5 +
>  target/linux/ramips/dts/ALL5002.dts|   8 +-
>  target/linux/ramips/dts/ALL5003.dts|   8 +-
>  target/linux/ramips/dts/AR670W.dts |   4 +-
>  target/linux/ramips/dts/AR725W.dts |   4 +-
>  target/linux/ramips/dts/ARGUS_ATP52B.dts   |  93 
>  target/linux/ramips/dts/ASL26555-16M.dts   |  17 +
>  target/linux/ramips/dts/ASL26555-8M.dts|  16 +
>  target/linux/ramips/dts/ATP-52B.dts|  96 +
>  target/linux/ramips/dts/AWAPN2403.dts  |   7 +-
>  target/linux/ramips/dts/AWM002-EVB-4M.dts  |   5 +
>  target/linux/ramips/dts/AWM002-EVB-8M.dts  |   5 +
>  target/linux/ramips/dts/AWM002.dtsi|   7 +-
>  target/linux/ramips/dts/AWM003-EVB.dts |  11 +-
>  target/linux/ramips/dts/ArcherC20i.dts |   1 -
>  target/linux/ramips/dts/BC2.dts|   3 +-
>  target/linux/ramips/dts/BR-6425.dts|   9 +-
>  target/linux/ramips/dts/BR-6475ND.dts  |  15 +-
>  target/linux/ramips/dts/BROADWAY.dts   |   8 +-
>  target/linux/ramips/dts/CARAMBOLA.dts  |   2 -
>  target/linux/ramips/dts/CF-WR800N.dts  |  31 +-
>  target/linux/ramips/dts/CY-SWR1100.dts |  17 +-
>  target/linux/ramips/dts/D105.dts   |   4 +-
>  target/linux/ramips/dts/DAP-1350.dts   |  14 +-
>  target/linux/ramips/dts/DCS-930.dts|  11 +-
>  target/linux/ramips/dts/DCS-930L-B1.dts|  11 +-
>  target/linux/rami

Re: [OpenWrt-Devel] [PATCH 0/8] Add support for three PowerCloud Systems devices

2015-08-16 Thread John Crispin
Hi,

the series is in patchwork several times. some mails are duplicated 8
times. others exist twice, have identical content but 2 different
subjects. i marked all 25 patches as invalid. can you please work out
what we should merge and just resend it as a clean series against trunk
please.

John

On 09/08/2015 06:12, Daniel Dickinson wrote:
> Sorry, one last time; this series got concatenated into one big email.
> 
> Hi all,
> 
> I have added suport for three PowerCloud Systems devices based on
> the patches posted in 
> https://lists.openwrt.org/pipermail/opewrt-devel/2012-Novembre/017340.html,
> updated board support in the OpenWrt tree, and some tweaks of my own.
> 
> These patches are against trunk.
> 
> Daniel Dickinson (8):
>   CC PowerCloud CAP324 Image generation
>   CC PowerCloud CAP324 OpenWrt configuration
>   CC PowerCloud CR3000 Kernel BSP
>   CC PowerCloud CR3000 image generation
>   CC PowerCloud CR3000 OpenWrt configuration
>   CC PowerCloud CR5000 Kernel BSP
>   CC PowerCloud CR5000 image generation
>   CC PowerCloud CR5000 OpenWrt configuration
> 
>  package/boot/uboot-envtools/files/ar71xx   |   3 +
>  target/linux/ar71xx/base-files/etc/diag.sh |   9 +
>  .../ar71xx/base-files/etc/uci-defaults/01_leds |  20 ++
>  .../ar71xx/base-files/etc/uci-defaults/02_network  |   8 +
>  target/linux/ar71xx/base-files/lib/ar71xx.sh   |   9 +
>  .../ar71xx/base-files/lib/upgrade/platform.sh  |   5 +-
>  target/linux/ar71xx/config-4.1 |   2 +
>  target/linux/ar71xx/generic/profiles/pcs.mk|  79 +++
>  target/linux/ar71xx/image/Makefile |  12 ++
>  .../815-MIPS-ath79-add-cr3000-support.patch| 211 +++
>  .../816-MIPS-ath79-add-cr5000-support.patch| 230 
> +
>  11 files changed, 587 insertions(+), 1 deletion(-)
>  create mode 100644 
> target/linux/ar71xx/patches-4.1/815-MIPS-ath79-add-cr3000-support.patch
>  create mode 100644 
> target/linux/ar71xx/patches-4.1/816-MIPS-ath79-add-cr5000-support.patch
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] enable strong SSP / Stackprotector on gcc5

2015-08-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen 
---
 config/Config-build.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/Config-build.in b/config/Config-build.in
index f2d292e..e2defaa 100644
--- a/config/Config-build.in
+++ b/config/Config-build.in
@@ -232,7 +232,7 @@ menu "Global build settings"
config PKG_CC_STACKPROTECTOR_STRONG
bool "Strong"
select SSP_SUPPORT if !USE_MUSL
-   depends on GCC_VERSION_4_9_LINARO
+   depends on GCC_VERSION_4_9_LINARO || GCC_VERSION_5
depends on KERNEL_CC_STACKPROTECTOR_STRONG
endchoice
 
@@ -247,7 +247,7 @@ menu "Global build settings"
config KERNEL_CC_STACKPROTECTOR_REGULAR
bool "Regular"
config KERNEL_CC_STACKPROTECTOR_STRONG
-   depends on GCC_VERSION_4_9_LINARO
+   depends on GCC_VERSION_4_9_LINARO || GCC_VERSION_5
bool "Strong"
endchoice
 
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/1] [buildroot] Fix for liblzma breaks redhat-like systems

2015-08-16 Thread Daniel Dickinson
I'll be doing a build shortly.  I haven't had much time this weekend, so 
hopefully I'll have an answer before the busy week starts.


Regards,

Daniel

On 2015-08-16 11:44 AM, John Crispin wrote:



On 15/08/2015 16:37, Hauke Mehrtens wrote:

On 08/09/2015 05:50 AM, Daniel Dickinson wrote:

On RedHat/Fedora and derivatives we must use the system liblzma
from xz-devel because the liblzma in tools/xz breaks these
systems due to system tools (which use liblzma) having
missing symbols when staging_dir/host/lib has liblzma
(because buildroot puts staging_dir/host/lib first in
library load path and therefore all binaries not just
buildroot's binaries use liblzma from staging_dir/host/lib, at
least while building OpenWrt).

Closes: 20134
Signed-off-by: Daniel Dickinson 
---
  include/host.mk  |  7 ++-
  include/prereq-build.mk  |  7 +++
  tools/Makefile   | 11 ---
  tools/squashfs4/Makefile |  2 +-
  4 files changed, 22 insertions(+), 5 deletions(-)


Please check if your patch is still needed with r46603
https://dev.openwrt.org/changeset/46603




Daniel,

did you test the rev hauke named ?

John
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/1] [buildroot] Fix for liblzma breaks redhat-like systems

2015-08-16 Thread John Crispin


On 15/08/2015 16:37, Hauke Mehrtens wrote:
> On 08/09/2015 05:50 AM, Daniel Dickinson wrote:
>> On RedHat/Fedora and derivatives we must use the system liblzma
>> from xz-devel because the liblzma in tools/xz breaks these
>> systems due to system tools (which use liblzma) having
>> missing symbols when staging_dir/host/lib has liblzma
>> (because buildroot puts staging_dir/host/lib first in
>> library load path and therefore all binaries not just
>> buildroot's binaries use liblzma from staging_dir/host/lib, at
>> least while building OpenWrt).
>>
>> Closes: 20134
>> Signed-off-by: Daniel Dickinson 
>> ---
>>  include/host.mk  |  7 ++-
>>  include/prereq-build.mk  |  7 +++
>>  tools/Makefile   | 11 ---
>>  tools/squashfs4/Makefile |  2 +-
>>  4 files changed, 22 insertions(+), 5 deletions(-)
>>
> Please check if your patch is still needed with r46603
> https://dev.openwrt.org/changeset/46603
> 


Daniel,

did you test the rev hauke named ?

John
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3] mac80211: add mt7601u driver

2015-08-16 Thread Dirk Neukirchen
firmware is not available in linux-firmware yet
so use official driver source

Signed-off-by: Dirk Neukirchen 
---
v2: fix TITLE c/p error
v3: add missing firmware

 package/kernel/mac80211/Makefile | 34 +-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 40b08c0..6afef10 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -31,7 +31,7 @@ PKG_DRIVERS = \
mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu
+   rtl8192de rtl8192cu mt7601u
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -695,6 +695,27 @@ define KernelPackage/mac80211-hwsim
   AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
 endef
 
+PKG_MT7601U_FW_NAME:=DPO_MT7601U_LinuxSTA
+PKG_MT7601U_FW_VERSION:=3.0.0.4_20130913
+PKG_MT7601U_FW_MD5SUM:=5f440dccc8bc952745a191994fc34699
+PKG_MT7601U_FW_SOURCE:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION).tar.bz2
+PKG_MT7601U_FW_SOURCE_URL:=http://www.mediatek.com/AmazonS3/Downloads/linux/
+define Download/mt7601u-firmware
+  FILE:=$(PKG_MT7601U_FW_SOURCE)
+  URL:=$(PKG_MT7601U_FW_SOURCE_URL)
+  MD5SUM:=$(PKG_MT7601U_FW_MD5SUM)
+  SUBDIR:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION)
+endef
+$(eval $(call Download,mt7601u-firmware))
+
+define KernelPackage/mt7601u
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=MT7601U-based USB dongles Wireless Driver
+  DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
+  AUTOLOAD:=$(call AutoProbe,mt7601)
+endef
+
 define KernelPackage/net-libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
@@ -1593,6 +1614,8 @@ config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
 
 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
+config-$(call config_package,mt7601u) += MT7601U
+config-y += WL_MEDIATEK
 
 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
@@ -1695,6 +1718,7 @@ define Build/Prepare
$(TAR) -C $(PKG_BUILD_DIR) -xjf 
$(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
$(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE)
$(TAR) -C $(PKG_BUILD_DIR) -xjf 
$(DL_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE)
+   $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_MT7601U_FW_SOURCE)
rm -rf \
$(PKG_BUILD_DIR)/include/linux/ssb \
$(PKG_BUILD_DIR)/include/linux/bcma \
@@ -1868,6 +1892,13 @@ else
 endif
 endef
 
+define KernelPackage/mt7601u/install
+   $(INSTALL_DIR) $(1)/lib/firmware
+   $(INSTALL_DATA) \
+   
$(PKG_BUILD_DIR)/$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION)/mcu/bin/MT7601.bin
 \
+   $(1)/lib/firmware/mt7601u.bin
+endef
+
 define KernelPackage/mwl8k/install
$(INSTALL_DIR) $(1)/lib/firmware/mwl8k
$(INSTALL_DATA) \
@@ -2052,6 +2083,7 @@ $(eval $(call KernelPackage,rtl8192de))
 $(eval $(call KernelPackage,rtl8192cu))
 $(eval $(call KernelPackage,zd1211rw))
 $(eval $(call KernelPackage,mac80211-hwsim))
+$(eval $(call KernelPackage,mt7601u))
 $(eval $(call KernelPackage,ath9k-common))
 $(eval $(call KernelPackage,ath9k))
 $(eval $(call KernelPackage,ath9k-htc))
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [libubox] ulog: check if /dev/kmsg is special file

2015-08-16 Thread Sergiy Kibrik
Race is possible in ulog_kmsg: if no /dev/kmsg exists
(e.g. while /dev gets re-mounted) regular file created instead.
>From this point system goes without kernel logger:
special character file can't be created anymore, all clients keep
overwriting single message in regular file.

To avoid this we check if file we're going to write to is really
character special and ensure it doesn't go away while we check.

Signed-off-by: Sergiy Kibrik 
---
 ulog.c | 17 -
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/ulog.c b/ulog.c
index 776a0c4..10d61da 100644
--- a/ulog.c
+++ b/ulog.c
@@ -23,6 +23,9 @@
 #include 
 #include 
 #include 
+#include 
+#include 
+#include 
 
 static int _ulog_channels = -1;
 static int _ulog_facility = -1;
@@ -89,8 +92,18 @@ static void ulog_defaults(void)
 static void ulog_kmsg(int priority, const char *fmt, va_list ap)
 {
FILE *kmsg;
+   int fd;
+   struct stat s;
+
+   /* extra checks not to accidentally create regular file */
+   fd = open("/dev/kmsg", O_WRONLY);
+   if (fd < 0)
+   return;
+
+   if (fstat(fd, &s) == 0 &&
+   s.st_mode & S_IFCHR &&
+   (kmsg = fdopen(fd, "w")) != NULL) {
 
-   if ((kmsg = fopen("/dev/kmsg", "w")) != NULL) {
fprintf(kmsg, "<%u>", priority);
 
if (_ulog_ident)
@@ -99,6 +112,8 @@ static void ulog_kmsg(int priority, const char *fmt, va_list 
ap)
vfprintf(kmsg, fmt, ap);
fclose(kmsg);
}
+
+   close(fd);
 }
 
 static void ulog_stdio(int priority, const char *fmt, va_list ap)
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2] mac80211: add mt7601u driver

2015-08-16 Thread Hauke Mehrtens
On 08/16/2015 09:54 AM, Dirk Neukirchen wrote:
> Signed-off-by: Dirk Neukirchen 
> ---
> v2: fix TITLE c/p error
> 
>  package/kernel/mac80211/Makefile | 13 -
>  1 file changed, 12 insertions(+), 1 deletion(-)

Doesn't this need some firmware? I see that this driver loads mt7601u.bin

Hauke
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2] mac80211: add mt7601u driver

2015-08-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen 
---
v2: fix TITLE c/p error

 package/kernel/mac80211/Makefile | 13 -
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 40b08c0..debb292 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -31,7 +31,7 @@ PKG_DRIVERS = \
mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu
+   rtl8192de rtl8192cu mt7601u
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -695,6 +695,14 @@ define KernelPackage/mac80211-hwsim
   AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
 endef
 
+define KernelPackage/mt7601u
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=MT7601U-based USB dongles Wireless Driver
+  DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
+  AUTOLOAD:=$(call AutoProbe,mt7601)
+endef
+
 define KernelPackage/net-libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
@@ -1593,6 +1601,8 @@ config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
 
 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
+config-$(call config_package,mt7601u) += MT7601U
+config-y += WL_MEDIATEK
 
 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
@@ -2052,6 +2062,7 @@ $(eval $(call KernelPackage,rtl8192de))
 $(eval $(call KernelPackage,rtl8192cu))
 $(eval $(call KernelPackage,zd1211rw))
 $(eval $(call KernelPackage,mac80211-hwsim))
+$(eval $(call KernelPackage,mt7601u))
 $(eval $(call KernelPackage,ath9k-common))
 $(eval $(call KernelPackage,ath9k))
 $(eval $(call KernelPackage,ath9k-htc))
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211: add mt7601u driver

2015-08-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen 
---
 package/kernel/mac80211/Makefile | 13 -
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 40b08c0..874ff9f 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -31,7 +31,7 @@ PKG_DRIVERS = \
mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu
+   rtl8192de rtl8192cu mt7601u
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -695,6 +695,14 @@ define KernelPackage/mac80211-hwsim
   AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
 endef
 
+define KernelPackage/mt7601u
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=mac80211 HW simulation device
+  DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
+  AUTOLOAD:=$(call AutoProbe,mt7601)
+endef
+
 define KernelPackage/net-libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
@@ -1593,6 +1601,8 @@ config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
 
 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
+config-$(call config_package,mt7601u) += MT7601U
+config-y += WL_MEDIATEK
 
 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
@@ -2052,6 +2062,7 @@ $(eval $(call KernelPackage,rtl8192de))
 $(eval $(call KernelPackage,rtl8192cu))
 $(eval $(call KernelPackage,zd1211rw))
 $(eval $(call KernelPackage,mac80211-hwsim))
+$(eval $(call KernelPackage,mt7601u))
 $(eval $(call KernelPackage,ath9k-common))
 $(eval $(call KernelPackage,ath9k))
 $(eval $(call KernelPackage,ath9k-htc))
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel