summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-02 13:38:54 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-02 13:38:54 +0100
commit2a2320b4292d4e370cc95aea61525ebd7dc11337 (patch)
treecfead1b61fb8009e104293b9c4914f97b86590e0
parent521e7247df6ba4e2cf4a487dd44385305972c9ee (diff)
add an example interfaces file, make tmpfs configurable via menu
-rw-r--r--package/base-files/Makefile3
-rw-r--r--package/base-files/src/etc/network/interfaces57
-rw-r--r--rules.mk1
-rw-r--r--target/config/Config.in.runtime21
4 files changed, 74 insertions, 8 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 369d8f485..f20b650c3 100644
--- a/package/base-files/Makefile
+++ b/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
diff --git a/package/base-files/src/etc/network/interfaces b/package/base-files/src/etc/network/interfaces
index f1bd92ed2..dbde94b80 100644
--- a/package/base-files/src/etc/network/interfaces
+++ b/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
diff --git a/rules.mk b/rules.mk
index 12c136e97..40d98186b 100644
--- a/rules.mk
+++ b/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)))
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index 080c15135..aa9cfda6d 100644
--- a/target/config/Config.in.runtime
+++ b/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.