- Timestamp:
- Aug 13, 2025, 3:28:59 AM (4 months ago)
- Branches:
- freewrt_2_0
- Children:
- 18face91
- Parents:
- 7e836b6
- Location:
- mk
- Files:
-
- 7 edited
- 1 moved
-
build.mk (modified) (1 diff)
-
buildhlp.mk (modified) (2 diffs)
-
modules.mk (moved) (moved from mk/modules-2.4.mk ) (1 diff)
-
netfilter.mk (modified) (1 diff)
-
package.mk (modified) (1 diff)
-
pkg-depend.mk (modified) (1 diff)
-
targets.mk (modified) (3 diffs)
-
vars.mk (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mk/build.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/licence for details.6 3 7 4 TOPDIR=${shell pwd} -
mk/buildhlp.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/license for details.6 3 7 4 ifneq (${PKG_SOURCE_URL},) … … 38 35 [ ! -d ./patches ] || (fgrep -q '@@ -0,0 ' patches/{patch-*,*.patch} \ 39 36 >/dev/null 2>&1 && touch ${WRKSRC}/.patched-newfiles || :) 40 [ ! -d ./extra ] || (cd extra; $(PREVENT_PATCH) pax -rw. ${WRKSRC}/)37 [ ! -d ./extra ] || (cd extra; $(PREVENT_PATCH) cp -Rp . ${WRKSRC}/) 41 38 touch $@ 42 39 endif -
mk/modules.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/license for details.6 3 7 4 # parallel port support -
mk/netfilter.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/license for details.6 3 7 4 ifeq ($(NF_2_6),1) -
mk/package.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/license for details.6 3 7 4 WRKDIR_BASE:= ${BUILD_DIR} -
mk/pkg-depend.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/licence for details.6 3 7 4 arpd-compile: libpcap-compile libdnet-compile libevent-compile -
mk/targets.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/license for details.6 3 7 4 define target_template … … 18 15 19 16 # asus models 20 $(eval $(call target_template, 2.4,brcm,asus-wl500g,2_4_BRCM_ASUS_WL500G,eth0,eth1,eth2,n))21 $(eval $(call target_template, 2.4,brcm,asus-wl500g-deluxe,2_4_BRCM_ASUS_WL500G_DELUXE,eth0.0,eth0.1,eth1,y))22 $(eval $(call target_template, 2.4,brcm,asus-wl500g-premium,2_4_BRCM_ASUS_WL500G_PREMIUM,eth0.0,eth0.1,eth2,y))17 $(eval $(call target_template,6.12,brcm,asus-wl500g,BRCM_ASUS_WL500G,eth0,eth1,eth2,n)) 18 $(eval $(call target_template,6.12,brcm,asus-wl500g-deluxe,BRCM_ASUS_WL500G_DELUXE,eth0.0,eth0.1,eth1,y)) 19 $(eval $(call target_template,6.12,brcm,asus-wl500g-premium,BRCM_ASUS_WL500G_PREMIUM,eth0.0,eth0.1,eth2,y)) 23 20 # linksys models 24 $(eval $(call target_template, 2.4,brcm,linksys-wrt54gs-10,2_4_BRCM_LINKSYS_WRT54GS_10,eth0.0,eth0.1,eth1,y))25 $(eval $(call target_template, 2.4,brcm,linksys-wrt54gs-11,2_4_BRCM_LINKSYS_WRT54GS_11,eth0.0,eth0.1,eth1,y))26 $(eval $(call target_template, 2.4,brcm,linksys-wrt54gs-4,2_4_BRCM_LINKSYS_WRT54GS_4,eth0.0,eth0.1,eth1,r))27 $(eval $(call target_template, 2.4,brcm,linksys-wrt54g-20,2_4_BRCM_LINKSYS_WRT54G_20,eth0.0,eth0.1,eth1,y))28 $(eval $(call target_template, 2.4,brcm,linksys-wrt54g-22,2_4_BRCM_LINKSYS_WRT54G_22,eth0.0,eth0.1,eth1,y))29 $(eval $(call target_template, 2.4,brcm,linksys-wrt54g-30,2_4_BRCM_LINKSYS_WRT54G_30,eth0.0,eth0.1,eth1,y))30 $(eval $(call target_template, 2.4,brcm,linksys-wrt54g-31,2_4_BRCM_LINKSYS_WRT54G_31,eth0.0,eth0.1,eth1,y))31 $(eval $(call target_template, 2.4,brcm,linksys-wrt54g-4,2_4_BRCM_LINKSYS_WRT54G_4,eth0.0,eth0.1,eth1,y))32 $(eval $(call target_template, 2.4,brcm,linksys-wrt54gl,2_4_BRCM_LINKSYS_WRT54GL,eth0.0,eth0.1,eth1,r))33 $(eval $(call target_template, 2.4,brcm,linksys-wrt54g3g,2_4_BRCM_LINKSYS_WRT54G3G,eth0.0,eth0.1,eth1,y))21 $(eval $(call target_template,6.12,brcm,linksys-wrt54gs-10,BRCM_LINKSYS_WRT54GS_10,eth0.0,eth0.1,eth1,y)) 22 $(eval $(call target_template,6.12,brcm,linksys-wrt54gs-11,BRCM_LINKSYS_WRT54GS_11,eth0.0,eth0.1,eth1,y)) 23 $(eval $(call target_template,6.12,brcm,linksys-wrt54gs-4,BRCM_LINKSYS_WRT54GS_4,eth0.0,eth0.1,eth1,r)) 24 $(eval $(call target_template,6.12,brcm,linksys-wrt54g-20,BRCM_LINKSYS_WRT54G_20,eth0.0,eth0.1,eth1,y)) 25 $(eval $(call target_template,6.12,brcm,linksys-wrt54g-22,BRCM_LINKSYS_WRT54G_22,eth0.0,eth0.1,eth1,y)) 26 $(eval $(call target_template,6.12,brcm,linksys-wrt54g-30,BRCM_LINKSYS_WRT54G_30,eth0.0,eth0.1,eth1,y)) 27 $(eval $(call target_template,6.12,brcm,linksys-wrt54g-31,BRCM_LINKSYS_WRT54G_31,eth0.0,eth0.1,eth1,y)) 28 $(eval $(call target_template,6.12,brcm,linksys-wrt54g-4,BRCM_LINKSYS_WRT54G_4,eth0.0,eth0.1,eth1,y)) 29 $(eval $(call target_template,6.12,brcm,linksys-wrt54gl,BRCM_LINKSYS_WRT54GL,eth0.0,eth0.1,eth1,r)) 30 $(eval $(call target_template,6.12,brcm,linksys-wrt54g3g,BRCM_LINKSYS_WRT54G3G,eth0.0,eth0.1,eth1,y)) 34 31 # netgear models 35 $(eval $(call target_template, 2.4,brcm,netgear-wgt634u,2_4_BRCM_NETGEAR_WGT634U,eth0.0,eth0.1,ath0,r))32 $(eval $(call target_template,6.12,brcm,netgear-wgt634u,BRCM_NETGEAR_WGT634U,eth0.0,eth0.1,ath0,r)) 36 33 37 34 # set kernel version 38 ifeq ($(KERNEL),2.4) 39 KERNEL_VERSION=2.4.36.9 35 KERNEL_VERSION=6.12 40 36 KERNEL_RELEASE=1 41 KERNEL_MOD_SUFFIX=o 42 endif 37 KERNEL_MOD_SUFFIX=ko 43 38 44 39 # set architecture … … 71 66 export FS 72 67 73 FWRT_VERSION= 1.068 FWRT_VERSION=2.0 74 69 export FWRT_VERSION -
mk/vars.mk
r7e836b6 r1b2d56f 1 # $FreeWRT$2 #-3 1 # This file is part of the FreeWRT project. FreeWRT is copyrighted 4 2 # material, please see the LICENCE file in the top-level directory 5 # or at http://www.freewrt.org/licence for details.6 #-7 # Note: if this file ever doesn't work on both GNU and BSD make,8 # I'll use 'svn blame' and get to you personally ;-)9 3 10 4 CP= cp -fpR … … 21 15 BUILD_DIR:= $(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX) 22 16 STAGING_DIR:= $(BASE_DIR)/staging_dir_$(ARCH)$(ARCH_FPU_SUFFIX) 17 STAGING_HOST_DIR:= ${BASE_DIR}/host_${GNU_HOST_NAME} 23 18 TOOLCHAIN_BUILD_DIR= $(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX) 24 19 TOOLCHAIN_STAMP_DIR:= $(STAGING_DIR)/stamp … … 34 29 TARGET_PATH= $(LBIN_DIR):$(STAGING_DIR)/usr/bin:$(STAGING_DIR)/bin:$(_PATH) 35 30 IMAGE:= $(BUILD_DIR)/root_fs_$(ARCH)$(ARCH_FPU_SUFFIX) 36 REAL_GNU_TARGET_NAME= $(OPTIMIZE_FOR_CPU)- linux-uclibc37 GNU_TARGET_NAME= $(OPTIMIZE_FOR_CPU)- linux38 KERNEL_CROSS:= $(STAGING_DIR)/ bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-39 TARGET_CROSS:= $(STAGING_DIR)/ bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-31 REAL_GNU_TARGET_NAME= $(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc 32 GNU_TARGET_NAME= $(OPTIMIZE_FOR_CPU)-freewrt-linux 33 KERNEL_CROSS:= $(STAGING_DIR)/usr/bin/$(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc- 34 TARGET_CROSS:= $(STAGING_DIR)/usr/bin/$(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc- 40 35 TARGET_CC:= $(TARGET_CROSS)gcc 41 STRIP:= $(STAGING_DIR)/ bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-strip36 STRIP:= $(STAGING_DIR)/usr/bin/$(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc-strip 42 37 PATCH= $(SCRIPT_DIR)/patch-kernel.sh 43 38 SED:= sed -i -e … … 71 66 # XXX derive these from FWRT_* vars 72 67 UNAME_S:= Linux 73 UNAME_R:= 2.4.33.368 UNAME_R:= 6.12.41 74 69 UNAME_M:= mips 75 70 … … 77 72 cd ${WRKDIR} && \ 78 73 for file in ${DISTFILES}; do case $$file in \ 79 *.cpio | *.tar) \ 80 pax -r -s '!/\.$$!!' <$$file ;; \ 81 *.cpio.Z | *.cpio.gz | *.cgz | *.mcz | \ 82 *.tar.Z | *.tar.gz | *.taz | *.tgz) \ 83 gzip -dc $$file | pax -r -s '!/\.$$!!' ;; \ 74 *.cpio) \ 75 cat $$file | cpio -i -d ;; \ 76 *.tar) \ 77 tar -xf $$file ;; \ 78 *.cpio.Z | *.cpio.gz | *.cgz | *.mcz) \ 79 gzip -dc $$file | cpio -i -d ;; \ 80 *.tar.xz | *.txz) \ 81 xz -dc $$file | tar -xf - ;; \ 82 *.tar.Z | *.tar.gz | *.taz | *.tgz) \ 83 gzip -dc $$file | tar -xf - ;; \ 84 84 *.cpio.bz2 | *.cbz | *.tar.bz2 | *.tbz | *.tbz2) \ 85 bzip2 -dc $$file | pax -r -s '!/\.$$!!';; \85 bzip2 -dc $$file | tar -xf - ;; \ 86 86 *.zip) \ 87 87 unzip -d ${WRKDIR} $$file ;; \
Note:
See TracChangeset
for help on using the changeset viewer.
