diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-16 14:24:02 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-16 14:24:02 +0200 |
commit | 932272554e1fdd5ef1b15e55b30786595b5d212e (patch) | |
tree | ea47e886611f5fe4d1bbda2b99cc104d9fcb94e3 /package/base-files | |
parent | 71582bdd2080c6d7fb446d4cea10c93cf781419d (diff) |
use manual config for base-files, fix fancy prompt
Diffstat (limited to 'package/base-files')
-rw-r--r-- | package/base-files/Config.in.manual | 16 | ||||
-rw-r--r-- | package/base-files/Makefile | 6 | ||||
-rw-r--r-- | package/base-files/src/etc/profile | 4 |
3 files changed, 19 insertions, 7 deletions
diff --git a/package/base-files/Config.in.manual b/package/base-files/Config.in.manual index d750ff3ef..a3180f4dc 100644 --- a/package/base-files/Config.in.manual +++ b/package/base-files/Config.in.manual @@ -1,5 +1,19 @@ +config ADK_COMPILE_BASE_FILES + tristate + depends on ADK_PACKAGE_BASE_FILES + default n + +config ADK_PACKAGE_BASE_FILES + prompt "base-files............. basic filesystem structure and scripts" + tristate + default y if !ADK_TOOLCHAIN_ONLY + select ADK_COMPILE_BASE_FILES + depends on !ADK_TOOLCHAIN_ONLY + help + basic filesystem structure and scripts + config ADK_PACKAGE_CONFIG_IN_ETC - prompt ".config in /etc.................. include buildsystem configuration in image" + prompt ".config in /etc...... include buildsystem configuration in image" bool depends on ADK_PACKAGE_BASE_FILES default y if !ADK_TOOLCHAIN_ONLY diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 37f8cbc6c..db1162946 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:= 22 +PKG_RELEASE:= 23 PKG_SECTION:= base PKG_DESCR:= basic files and scripts @@ -17,9 +17,6 @@ include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,BASE_FILES,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -PKGDFLT_BASE_FILES= y if !ADK_TOOLCHAIN_ONLY -CFLINE_BASE_FILES:= depends on !ADK_TOOLCHAIN_ONLY - CONFIG_STYLE:= manual BUILD_STYLE:= manual INSTALL_STYLE:= manual @@ -77,6 +74,7 @@ endif echo $(ADK_TARGET) > $(IDIR_BASE_FILES)/etc/adktarget ifneq (${ADK_PACKAGE_CONFIG_IN_ETC},) gzip -9c ${TOPDIR}/.config >$(IDIR_BASE_FILES)/etc/adkconfig.gz + chmod 600 $(IDIR_BASE_FILES)/etc/adkconfig.gz endif rebuild: diff --git a/package/base-files/src/etc/profile b/package/base-files/src/etc/profile index 0d8a4f240..78cf2fe37 100644 --- a/package/base-files/src/etc/profile +++ b/package/base-files/src/etc/profile @@ -1,9 +1,9 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin export TERM=vt220 if [[ $(id -u) = 0 ]]; then - export PS1='\u@\h:\w\# ' + export PS1='`whoami`@`hostname`:`pwd` # ' else - export PS1='\u@\h:\w\$ ' + export PS1='`whoami`@`hostname`:`pwd` $ ' fi cat /etc/banner 2>&- [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi |