Kaynağa Gözat

add an example interfaces file, make tmpfs configurable via menu

Waldemar Brodkorb 13 yıl önce
ebeveyn
işleme
2a2320b429

+ 2 - 1
package/base-files/Makefile

@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
 
 PKG_NAME:=		base-files
 PKG_VERSION:=		1.0
-PKG_RELEASE:=		42
+PKG_RELEASE:=		43
 PKG_SECTION:=		base
 PKG_DESCR:=		basic files and scripts
 
@@ -74,6 +74,7 @@ endif
 		> $(IDIR_BASE_FILES)/etc/adkversion
 	test -z $(ADK_TARGET_SYSTEM) || \
 	    echo $(ADK_TARGET_SYSTEM) > $(IDIR_BASE_FILES)/etc/adktarget
+	echo $(ADK_RUNTIME_TMPFS_SIZE) > $(IDIR_BASE_FILES)/etc/tmpfs
 ifneq (${ADK_PACKAGE_CONFIG_IN_ETC},)
 	gzip -9c ${TOPDIR}/.config >$(IDIR_BASE_FILES)/etc/adkconfig.gz
 	chmod 600 $(IDIR_BASE_FILES)/etc/adkconfig.gz

+ 57 - 0
package/base-files/src/etc/network/interfaces

@@ -1,2 +1,59 @@
 auto lo
 iface lo inet loopback
+
+auto eth0
+iface eth0 inet dhcp
+
+## static network configuration
+#auto eth0
+#iface eth0 inet static
+#  address 192.168.1.1
+#  netmask 255.255.255.0
+#  broadcast +
+#  gateway 192.168.1.254
+##
+
+## bridge configuration
+#auto br0 
+#iface br0 inet static
+#  address 192.168.99.1
+#  netmask 255.255.255.0
+#  broadcast +
+#  bridge-ports eth0 eth1
+##
+
+## pppoe configuration
+#auto ppp0
+#iface ppp0 inet ppp
+#  use-template pppoe
+#  provider isp
+#  ppp-mtu 1412
+#  ppp-username foo
+#  ppp-password bar
+#  ppp-device eth1
+##
+
+## wireless client configuration
+#auto wlan0
+#iface wlan0 inet dhcp
+#  wireless-ssid myap
+#  wireless-channel 11
+#  wireless-mode sta
+#  wireless-security wpa2
+#  wireless-passphrase xxxxxx
+##
+
+## wireless accesspoint configuration
+#auto wlan0
+#iface wlan0 inet static
+#  address 192.168.40.10
+#  netmask 255.255.255.0
+#  broadcast +
+#  wireless-ssid myap
+#  wireless-channel 8
+#  wireless-mode ap
+#  wireless-security wpa2
+#  wireless-passphrase xxxxxx
+##
+
+# for more special cases see: http://www.openadk.org/doku.php?id=network

+ 1 - 0
rules.mk

@@ -32,6 +32,7 @@ ADK_TARGET_CFLAGS:=	$(strip $(subst ",, $(ADK_TARGET_CFLAGS)))
 ADK_TARGET_IP:=		$(strip $(subst ",, $(ADK_TARGET_IP)))
 ADK_TARGET_SUFFIX:=	$(strip $(subst ",, $(ADK_TARGET_SUFFIX)))
 ADK_TARGET_CMDLINE:=	$(strip $(subst ",, $(ADK_TARGET_CMDLINE)))
+ADK_RUNTIME_TMPFS_SIZE:=	$(strip $(subst ",, $(ADK_RUNTIME_TMPFS_SIZE)))
 ADK_RUNTIME_CONSOLE_SERIAL_SPEED:=	$(strip $(subst ",, $(ADK_RUNTIME_CONSOLE_SERIAL_SPEED)))
 ADK_HOST:=		$(strip $(subst ",, $(ADK_HOST)))
 ADK_VENDOR:=		$(strip $(subst ",, $(ADK_VENDOR)))

+ 14 - 7
target/config/Config.in.runtime

@@ -20,19 +20,19 @@ config ADK_RUNTIME_PASSWORD
 	help
 	  Predefine the root password enabled in the built image.
 
+config ADK_RUNTIME_TMPFS_SIZE
+	string "size of /tmp in memory (kB)"
+	default "16384" if ADK_TARGET_SYSTEM_IBM_X40
+	default "2048"
+	help
+	  Size of /tmp in memory in Kilobyte.
+
 config ADK_RUNTIME_TIMEZONE
 	string "timezone for the embedded system"
 	default "Europe/Berlin"
 	help
 	  Predefine the timezone for the embedded system.
 
-config ADK_RUNTIME_KBD_LAYOUT
-	string "keyboard layout for the embedded system"
-	default ""
-	depends on ADK_TARGET_WITH_INPUT
-	help
-	  Predefine the keyboard layout for the embedded system.
-
 choice
 prompt "Console output on embedded system"
 default ADK_RUNTIME_CONSOLE_BOTH if ADK_TARGET_WITH_VGA
@@ -59,3 +59,10 @@ config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
 	string
 	default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP	
 	default "115200"
+
+config ADK_RUNTIME_KBD_LAYOUT
+	string "keyboard layout for the embedded system"
+	default ""
+	depends on ADK_TARGET_WITH_INPUT
+	help
+	  Predefine the keyboard layout for the embedded system.