Projecte

General

Perfil

« Anterior | Següent » 

Revisió 92b6b927

Afegit per Pau Escrich fa aproximadament 11 anys

Adds a new way to generate/store the configuration files for each target:
There are profiles (such as ath-qmp-small-node) which are shared between all similar kind of devices (i.e ubiquiti devices)
And individual configurations (optional) which can be used to specify extra options for the device

Visualitza les diferències:

targets.mk
# NAME := The name of the device used for output firmware file name
# ARCH := The OpenWRT architecture
# IMAGE := The file path (relative to buildroot) to the firmware
# PROFILE := The profile used for the device (must coincide with a configs/xxx filename=
#
# Optional
# TARGET_MASTER := The device will use the same options defined in his target master
# TBUILD := The buildroot directory (relative to BUILD_DIR)
# TARGET_MASTER := If defined the config files will be taken from the master target
# SYSUPGRADE := The file path (relative to buildroot) to the firmware sysupgrade image
#
# Any option defined in Makefile can be overrided from here, for instance
# override OWRT_SVN = svn://mysvn.com/owrt
HW_AVAILABLE := ar71xx alix bullet freestation nsm2 nsm5 pico2 rocket rs rspro tl-2543 tl-703n tl-841 tl-842 tl-mr3020 tl-mr3040 tl-mr3040-cam tl-wdr3600 tl-wdr4300 vbox vmware wpe72
HW_AVAILABLE := ar71xx alix bullet nsm2 nsm5 pico2 rocket rs rspro tl-2543 tl-703n tl-841 tl-842 tl-mr3020 tl-mr3040 tl-mr3040-cam tl-wdr3600 tl-wdr4300 vbox vmware wpe72
TBUILD_LIST := ar71xx
ifeq ($(T),ar71xx)
NAME:=ar71xx
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
endif
ifeq ($(T),alix)
NAME:=Alix
ARCH:=x86
TBUILD:=ar71xx
PROFILE:=x86-qmp-big-node
IMAGE:=bin/$(ARCH)/openwrt-x86-alix2-combined-squashfs.img
SYSUPGRADE:=bin/$(ARCH)/openwrt-x86-alix2-combined-squashfs.img
endif
......
NAME:=Bullet
ARCH:=ar71xx
TBUILD:=ar71xx
TARGET_MASTER:=nsm5
PROFILE:=ath-qmp-small-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-sysupgrade.bin
endif
ifeq ($(T),freestation)
NAME:=Freestation
ARCH:=ramips
TBUILD:=ar71xx
IMAGE:=bin/$(ARCH)/openwrt-ramips-rt305x-freestation5-squashfs-sysupgrade.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ramips-rt305x-freestation5-squashfs-sysupgrade.bin
endif
ifeq ($(T),nsm2)
NAME:=NanoStationM2
ARCH:=ar71xx
TBUILD:=ar71xx
TARGET_MASTER:=nsm5
PROFILE:=ath-qmp-small-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin
endif
......
NAME:=NanoStationM5
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-small-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin
endif
......
NAME:=PicoStation2
ARCH:=atheros
TBUILD:=ar71xx
PROFILE:=at2-qmp-tiny-node
BUILD_PATH:=$(BUILD_DIR)/atheros
IMAGE:=bin/$(ARCH)/openwrt-atheros-ubnt2-pico2-squashfs.bin
endif
......
NAME:=Rocket
ARCH:=ar71xx
TBUILD:=ar71xx
TARGET_MASTER:=nsm5
PROFILE:=ath-qmp-small-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-rocket-m-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-rocket-m-squashfs-sysupgrade.bin
endif
......
NAME:=RouterStation
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-big-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-rs-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-rs-squashfs-sysupgrade.bin
endif
......
NAME:=RouterStationPro
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-big-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-ubnt-rspro-squashfs-sysupgrade.bin
endif
......
NAME:=Tplink2543
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-small-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr2543-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr2543-v1-squashfs-sysupgrade.bin
endif
......
NAME:=Tplink841
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr841nd-v7-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr841nd-v7-squashfs-sysupgrade.bin
endif
......
NAME:=Tplink842
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr842n-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr842n-v1-squashfs-sysupgrade.bin
endif
......
NAME:=Tplink703n
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin
endif
......
NAME:=TplinkMR3020
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin
endif
......
NAME:=TplinkMR3040
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-sysupgrade.bin
endif
......
NAME:=TplinkMR3040CamStreaming
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-sysupgrade.bin
endif
......
NAME:=TplinkMR3040Bmx6Testing
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-tiny-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-sysupgrade.bin
endif
ifeq ($(T),tl-wdr3600)
NAME:=TplinkWDR3600
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-big-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-sysupgrade.bin
endif
......
NAME:=TplinkWDR4300
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-big-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-factory.bin
SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin
endif
ifeq ($(T),wpe72)
NAME:=CompexWPE72
ARCH:=ar71xx
TBUILD:=ar71xx
PROFILE:=ath-qmp-small-node
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-wpe72-squashfs-8M-factory.img
endif
ifeq ($(T),vbox)
NAME:=VBox
ARCH:=x86
TBUILD:=ar71xx
PROFILE:=vm-qmp-big-node
IMAGE:=bin/$(ARCH)/openwrt-x86-generic-combined-ext4.vdi
SYSUPGRADE:=bin/$(ARCH)/openwrt-x86-generic-combined-ext4.vdi
endif
......
NAME:=VMware
ARCH:=x86
TBUILD:=ar71xx
PROFILE:=vm-qmp-big-node
IMAGE:=bin/$(ARCH)/openwrt-x86-generic-combined-ext4.vmdk
SYSUPGRADE:=bin/$(ARCH)/openwrt-x86-generic-combined-ext4.vmdk
endif
ifeq ($(T),wpe72)
NAME:=CompexWPE72
ARCH:=ar71xx
TBUILD:=ar71xx
IMAGE:=bin/$(ARCH)/openwrt-ar71xx-generic-wpe72-squashfs-8M-factory.img
endif

També disponible a: Unified diff