Changeset 1b2d56f in freewrt for mk


Ignore:
Timestamp:
Aug 13, 2025, 3:28:59 AM (4 months ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_2_0
Children:
18face91
Parents:
7e836b6
Message:

linux: update to 6.12, cleanup

Location:
mk
Files:
7 edited
1 moved

Legend:

Unmodified
Added
Removed
  • mk/build.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/licence for details.
    63
    74TOPDIR=${shell pwd}
  • mk/buildhlp.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/license for details.
    63
    74ifneq (${PKG_SOURCE_URL},)
     
    3835        [ ! -d ./patches ] || (fgrep -q '@@ -0,0 ' patches/{patch-*,*.patch} \
    3936            >/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}/)
    4138        touch $@
    4239endif
  • mk/modules.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/license for details.
    63
    74# parallel port support
  • mk/netfilter.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/license for details.
    63
    74ifeq ($(NF_2_6),1)
  • mk/package.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/license for details.
    63
    74WRKDIR_BASE:=   ${BUILD_DIR}
  • mk/pkg-depend.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/licence for details.
    63
    74arpd-compile: libpcap-compile libdnet-compile libevent-compile
  • mk/targets.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# material, please see the LICENCE file in the top-level directory
    5 # or at http://www.freewrt.org/license for details.
    63
    74define target_template
     
    1815
    1916# 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))
    2320# 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))
    3431# 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))
    3633
    3734# set kernel version
    38 ifeq ($(KERNEL),2.4)
    39 KERNEL_VERSION=2.4.36.9
     35KERNEL_VERSION=6.12
    4036KERNEL_RELEASE=1
    41 KERNEL_MOD_SUFFIX=o
    42 endif
     37KERNEL_MOD_SUFFIX=ko
    4338
    4439# set architecture
     
    7166export FS
    7267
    73 FWRT_VERSION=1.0
     68FWRT_VERSION=2.0
    7469export FWRT_VERSION
  • mk/vars.mk

    r7e836b6 r1b2d56f  
    1 # $FreeWRT$
    2 #-
    31# This file is part of the FreeWRT project. FreeWRT is copyrighted
    42# 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 ;-)
    93
    104CP=                     cp -fpR
     
    2115BUILD_DIR:=             $(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
    2216STAGING_DIR:=           $(BASE_DIR)/staging_dir_$(ARCH)$(ARCH_FPU_SUFFIX)
     17STAGING_HOST_DIR:=      ${BASE_DIR}/host_${GNU_HOST_NAME}
    2318TOOLCHAIN_BUILD_DIR=    $(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
    2419TOOLCHAIN_STAMP_DIR:=   $(STAGING_DIR)/stamp
     
    3429TARGET_PATH=            $(LBIN_DIR):$(STAGING_DIR)/usr/bin:$(STAGING_DIR)/bin:$(_PATH)
    3530IMAGE:=                 $(BUILD_DIR)/root_fs_$(ARCH)$(ARCH_FPU_SUFFIX)
    36 REAL_GNU_TARGET_NAME=   $(OPTIMIZE_FOR_CPU)-linux-uclibc
    37 GNU_TARGET_NAME=        $(OPTIMIZE_FOR_CPU)-linux
    38 KERNEL_CROSS:=          $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
    39 TARGET_CROSS:=          $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
     31REAL_GNU_TARGET_NAME=   $(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc
     32GNU_TARGET_NAME=        $(OPTIMIZE_FOR_CPU)-freewrt-linux
     33KERNEL_CROSS:=          $(STAGING_DIR)/usr/bin/$(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc-
     34TARGET_CROSS:=          $(STAGING_DIR)/usr/bin/$(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc-
    4035TARGET_CC:=             $(TARGET_CROSS)gcc
    41 STRIP:=                 $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-strip
     36STRIP:=                 $(STAGING_DIR)/usr/bin/$(OPTIMIZE_FOR_CPU)-freewrt-linux-uclibc-strip
    4237PATCH=                  $(SCRIPT_DIR)/patch-kernel.sh
    4338SED:=                   sed -i -e
     
    7166# XXX derive these from FWRT_* vars
    7267UNAME_S:=               Linux
    73 UNAME_R:=               2.4.33.3
     68UNAME_R:=               6.12.41
    7469UNAME_M:=               mips
    7570
     
    7772                        cd ${WRKDIR} && \
    7873                        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 - ;; \
    8484                        *.cpio.bz2 | *.cbz | *.tar.bz2 | *.tbz | *.tbz2) \
    85                                 bzip2 -dc $$file | pax -r -s '!/\.$$!!' ;; \
     85                                bzip2 -dc $$file | tar -xf - ;; \
    8686                        *.zip) \
    8787                                unzip -d ${WRKDIR} $$file ;; \
Note: See TracChangeset for help on using the changeset viewer.