Changeset 41024


Ignore:
Timestamp:
2014-06-05T23:23:58+02:00 (4 years ago)
Author:
hauke
Message:

brcm47xx: move current target to "generic" subtarget

This allows creating more subtargets and optimize builds per family.

Signed-off-by: Rafał Miłecki <zajec5@…>
Signed-off-by: Hauke Mehrtens <hauke@…>

Location:
trunk/target/linux/brcm47xx
Files:
2 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/Makefile

    r40982 r41024  
    1111BOARDNAME:=Broadcom BCM47xx/53xx (MIPS) 
    1212FEATURES:=squashfs usb pcmcia low_mem 
     13SUBTARGETS:=generic 
    1314MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de> 
    1415 
     
    1617 
    1718include $(INCLUDE_DIR)/target.mk 
     19 
    1820DEFAULT_PACKAGES += swconfig wpad-mini nvram \ 
    1921        kmod-leds-gpio kmod-gpio-button-hotplug \ 
    2022        kmod-ledtrig-default-on kmod-ledtrig-timer kmod-ledtrig-netdev 
    2123 
    22 define Target/Description 
    23         Build firmware images for Broadcom based routers 
    24         (e.g. Netgear WGT634U) 
    25 endef 
    26  
    2724$(eval $(call BuildTarget)) 
  • trunk/target/linux/brcm47xx/image/Makefile

    r40762 r41024  
    9999endef 
    100100 
     101################################################# 
     102# Subtarget generic 
     103################################################# 
     104 
    101105# $(1): filesystem type. 
    102 define Image/Build/jffs2-128k 
     106define Image/Build/generic/jffs2-128k 
    103107        $(call Image/Build/CyberTAN,$(1),wrt54gs,W54S,4.80.1,$(patsubst jffs2-%,jffs2,$(1))) 
    104108        $(call Image/Build/CyberTAN,$(1),wrtsl54gs,W54U,2.08.1,$(patsubst jffs2-%,jffs2,$(1))) 
     
    108112 
    109113# $(1): filesystem type. 
    110 define Image/Build/jffs2-64k 
     114define Image/Build/generic/jffs2-64k 
    111115        $(call Image/Build/Chk,$(1),wgr614_v8,U12H072T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) 
    112116        $(call Image/Build/Chk,$(1),wndr3300_v1,U12H093T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) 
     
    155159 
    156160# $(1): filesystem type. 
    157 define Image/Build/squashfs 
    158         $(call Image/Build/jffs2-64k,$(1)) 
    159         $(call Image/Build/jffs2-128k,$(1)) 
     161define Image/Build/generic/squashfs 
     162        $(call Image/Build/generic/jffs2-64k,$(1)) 
     163        $(call Image/Build/generic/jffs2-128k,$(1)) 
    160164endef 
     165 
     166################################################# 
     167# Shared BuildImage defines 
     168################################################# 
    161169 
    162170define Image/Build/Initramfs 
     
    172180                -f $(KDIR)/vmlinux.gz \ 
    173181                $(call trxalign/$(1),$(1)) 
    174         $(call Image/Build/$(1),$(1)) 
     182        $(call Image/Build/$(SUBTARGET)/$(1),$(1)) 
    175183#       $(call Image/Build/Chk,$(1),wgr614_v9,U12H094T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) 
    176184#       $(call Image/Build/Chk,$(1),wndr3400_vcna,U12H155T01_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) 
Note: See TracChangeset for help on using the changeset viewer.