Browse Source

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 15 years ago
parent
commit
49a04727cb

+ 8 - 0
Config.in

@@ -206,6 +206,14 @@ 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 "en"
+	depends on ADK_TARGET_WITH_INPUT
+	help
+	  Predefine the keyboard layout for the embedded system.
 
 endmenu
 

+ 33 - 0
package/bkeymaps/Makefile

@@ -0,0 +1,33 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=		bkeymaps
+PKG_VERSION:=		1.13
+PKG_RELEASE:=		1
+PKG_MD5SUM:=		a68058ab4a81cf9a8dcbaaa7a5df5b11
+PKG_DESCR:=		binary keymaps for busybox loadkmap
+PKG_SECTION:=		utils
+PKG_URL:=		http://dev.alpinelinux.org/bkeymaps/
+PKG_SITES:=		http://dev.alpinelinux.org/bkeymaps/
+
+PKG_DFLT_BKEYMAPS:=	y if ADK_TARGET_WITH_INPUT
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,BKEYMAPS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:=		manual
+BUILD_STYLE:=		manual
+INSTALL_STYLE:=		manual
+
+KBD_LAYOUT:=$(strip $(subst ",, $(ADK_RUNTIME_KBD_LAYOUT)))
+KBD_DIR:=$(shell echo $(KBD_LAYOUT)|cut -c 1-2)
+
+do-install:
+	$(INSTALL_DIR) $(IDIR_BKEYMAPS)/usr/share/keymaps/
+	$(INSTALL_DATA) $(WRKBUILD)/bkeymaps/$(KBD_DIR)/$(KBD_LAYOUT).bmap \
+		$(IDIR_BKEYMAPS)/usr/share/keymaps/keymap.bmap
+
+include ${TOPDIR}/mk/pkg-bottom.mk

+ 4 - 0
package/bkeymaps/files/bkeymaps.postinst

@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+
+add_rcconf bkeymaps kbd NO

+ 26 - 0
package/bkeymaps/files/kbd.init

@@ -0,0 +1,26 @@
+#!/bin/sh
+#PKG bkeymaps
+#INIT 6
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+	[[ $kbd = NO ]] && exit 0
+	exec sh $0 start
+	;;
+start)
+	[ -f /usr/share/keymaps/keymap.bmap ] || exit
+	loadkmap < /usr/share/keymaps/keymap.bmap
+	;;
+stop)
+	;;
+restart)
+	sh $0 stop
+	sh $0 start
+	;;
+*)
+	echo "Usage: $0 {start | stop | restart}"
+	;;
+esac
+exit $?

+ 2 - 0
package/busybox/config/console-tools/Config.in

@@ -39,6 +39,7 @@ config BUSYBOX_DUMPKMAP
 
 config BUSYBOX_KBD_MODE
 	bool "kbd_mode"
+	default y if ADK_TARGET_WITH_INPUT
 	default n
 	help
 	  This program reports and sets keyboard mode.
@@ -51,6 +52,7 @@ config BUSYBOX_LOADFONT
 
 config BUSYBOX_LOADKMAP
 	bool "loadkmap"
+	default y if ADK_TARGET_WITH_INPUT
 	default n
 	help
 	  This program loads a keyboard translation table from

+ 4 - 4
package/cfgfs/Makefile

@@ -4,13 +4,13 @@
 include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		cfgfs
-PKG_VERSION:=		1.0.7
-PKG_RELEASE:=		3
+PKG_VERSION:=		1.0.8
+PKG_RELEASE:=		1
 PKG_DESCR:=		compressed config filesystem
 PKG_SECTION:=		base
-PKG_URL:=		http://www.openadk.org/
+PKG_URL:=		http://openadk.org/
 
-PKG_TARGET_DEPENDS:=	alix wrap foxboard ag241 foxg20 routerboard
+PKG_TARGET_DEPENDS:=	alix wrap foxboard ag241 foxg20 routerboard x86 x86_64
 
 PKG_CFLINE_CFGFS:=	select BUSYBOX_COMM@
 PKG_CFLINE_CFGFS+=	select BUSYBOX_MD5SUM@

+ 3 - 2
package/cfgfs/src/fwcf.sh

@@ -42,7 +42,7 @@
 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 wd=$(pwd)
 cd /
-what='Configuration Filesystem Utility (cfgfs), Version 1.07'
+what='Configuration Filesystem Utility (cfgfs), Version 1.08'
 
 who=$(id -u)
 if [ $who -ne 0 ]; then
@@ -124,7 +124,8 @@ if [ -x /sbin/mtd ];then
 fi
 
 # find backend device, first try to find partition with ID 88
-part=$(fdisk -l|awk '$5 == 88 { print $1 }')
+rootdisk=$(readlink /dev/root)
+part=$(fdisk -l /dev/${rootdisk%1}|awk '$5 == 88 { print $1 }')
 if [ -z $part ]; then
 	# otherwise search for MTD device with name cfgfs
 	part=/dev/mtd$(fgrep '"cfgfs"' /proc/mtd 2>/dev/null | sed 's/^mtd\([^:]*\):.*$/\1/')ro

+ 0 - 0
target/x86/files/etc/notmpfs


+ 1 - 0
target/x86/files/etc/tmpfs

@@ -0,0 +1 @@
+16384

+ 0 - 0
target/x86_64/files/etc/notmpfs


+ 1 - 0
target/x86_64/files/etc/tmpfs

@@ -0,0 +1 @@
+16384