Created
July 28, 2020 06:04
-
-
Save testanull/14bee9eeebfb4788541b180296676de6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CONFIG_BCM_CPU_ARCH_NAME=mips32 | |
export PROFILE=96838GWO | |
dpkg --add-architecture i386 && apt update && apt install -y locales nano git make autoconf gcc g++ xxd libz-dev wget file gcc-multilib g++-multilib autoconf | |
apt-get install libacl1-dev libuuid1:i386 uuid-dev uuid-dev:i386 zlib1g-dev zlib1g-dev:i386 liblzo2-dev liblzo2-dev:i386 pkg-config flex bison | |
git clone https://github.com/weihutaisui/BCM/ | |
find . -iname "*.pl" -exec chmod +x {} \; | |
find . -iname "*.sh" -exec chmod +x {} \; | |
find . -iname "configure" -exec chmod +x {} \; | |
find . -iname "gen_dt_bindings" -exec chmod +x {} \; | |
find . -iname "gendefconfig" -exec chmod +x {} \; | |
mkdir /opt/toolchains && cd /opt/toolchains && wget "https://github.com/wxalriss/auto-build-aria2-mips32-static/raw/master/crosstools-mips-gcc-5.3-linux-4.1-uclibc-1.0.12-binutils-2.25-NPTL.tar.bz2" | |
tar -xf crosstools-mips-gcc-5.3-linux-4.1-uclibc-1.0.12-binutils-2.25-NPTL.tar.bz2 | |
#https://snippets.aktagon.com/snippets/614-how-to-fix-bash-warning-setlocale-lc-all-cannot-change-locale-en-us- | |
#comment BUILD_PPPD=dynamic | |
#ln -s ./bcmdrivers/broadcom/net/wl/impl30/ ./bcm96838 | |
#cp ./bcmdrivers/broadcom/net/wl/bcm96838/main/src/router/.config.plt .config | |
******* | |
userspace/private/apps/wlan/scripts/Makefile | |
SHELL=/bin/bash | |
****** | |
add CONFIG_WPS=y to config | |
******** | |
userspace/private/libs/cms_core/Makefile: | |
comment: ifneq ($(strip $(WIRELESS)),) | |
comment: STATIC_LIBS = ../wlcsm/libwlcsm.a | |
******* | |
userspace/private/libs/cms_core/linux/Makefile: | |
+ CFLAGS += -DSUPPORT_WIRELESS | |
+ ALLOWED_INCLUDE_PATHS += -I$(BUILD_DIR)/userspace/private/libs/wlcsm/include | |
***** | |
makefile.common: | |
CMS_COMMON_LIBS += -lwlcsm | |
**** | |
userspace/private/apps/gpond/Makefile.fullsrc | |
comment: ifneq ($(strip $(BUILD_GPONCTL)),) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment