Add different profiles for Sheevaplug and Dockstar
Thanks to Gerrit Visser SVN-Revision: 22838
This commit is contained in:
parent
429c8a56b6
commit
dc116b1887
5 changed files with 62 additions and 3 deletions
|
@ -0,0 +1,9 @@
|
|||
config 'interface' 'loopback'
|
||||
option 'ifname' 'lo'
|
||||
option 'proto' 'static'
|
||||
option 'ipaddr' '127.0.0.1'
|
||||
option 'netmask' '255.0.0.0'
|
||||
|
||||
config 'interface' 'lan'
|
||||
option 'ifname' 'eth0'
|
||||
option 'proto' 'dhcp'
|
16
target/linux/kirkwood/base-files-Dockstar/etc/config/system
Normal file
16
target/linux/kirkwood/base-files-Dockstar/etc/config/system
Normal file
|
@ -0,0 +1,16 @@
|
|||
# system file for Dockstar
|
||||
config system
|
||||
option hostname OpenWrt
|
||||
option timezone UTC
|
||||
|
||||
config rdate
|
||||
option interface eth0
|
||||
config led
|
||||
option 'sysfs' 'dockstar:green:health'
|
||||
option 'trigger' 'none'
|
||||
option 'default' '1'
|
||||
config led
|
||||
option 'sysfs' 'dockstar:orange:misc'
|
||||
option 'trigger' 'netdev'
|
||||
option 'mode' 'tx rx'
|
||||
option 'dev' 'eth0'
|
|
@ -21,12 +21,12 @@ endef
|
|||
define Image/Build
|
||||
$(if $(Image/Build/$(1)), \
|
||||
$(call Image/Build/$(1),$(1)), \
|
||||
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).img \
|
||||
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img \
|
||||
)
|
||||
endef
|
||||
|
||||
define Image/Build/jffs2-128k
|
||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img \
|
||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img \
|
||||
bs=2048 conv=sync
|
||||
endef
|
||||
|
||||
|
@ -35,7 +35,7 @@ define Image/Build/squashfs
|
|||
( \
|
||||
dd if=$(KDIR)/uImage bs=4096k conv=sync; \
|
||||
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
||||
) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
||||
) > $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img
|
||||
endef
|
||||
|
||||
$(eval $(call BuildImage))
|
||||
|
|
17
target/linux/kirkwood/profiles/100-Sheevaplug.mk
Normal file
17
target/linux/kirkwood/profiles/100-Sheevaplug.mk
Normal file
|
@ -0,0 +1,17 @@
|
|||
#
|
||||
# Copyright (C) 2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
define Profile/Sheevaplug
|
||||
NAME:=Globalscale Sheevaplug
|
||||
PACKAGES:=
|
||||
endef
|
||||
|
||||
define Profile/Sheevaplug/Description
|
||||
Globalscale Sheevaplug Profile
|
||||
endef
|
||||
|
||||
$(eval $(call Profile,Sheevaplug))
|
17
target/linux/kirkwood/profiles/200-Dockstar.mk
Normal file
17
target/linux/kirkwood/profiles/200-Dockstar.mk
Normal file
|
@ -0,0 +1,17 @@
|
|||
#
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
define Profile/Dockstar
|
||||
NAME:=Seagate Dockstar
|
||||
PACKAGES:=
|
||||
endef
|
||||
|
||||
define Profile/Dockstar/Description
|
||||
Seagate Dockstar Profile
|
||||
endef
|
||||
|
||||
$(eval $(call Profile,Dockstar))
|
Loading…
Reference in a new issue