From 71da71d92d57421fb3546986f68e854ae472cf1a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 23 Dec 2015 22:02:03 +0100 Subject: optimize for really small systems Default to busybox hush for noMMU systems. Add busybox profiles to choose a minimal busybox config for noMMU systems. Add gdb git from ysato for h8/300 simulator. Change some kernel defaults to off to have a really small kernel. For bfin simulator the kernel+initramfs is smaller then 2MB in size. --- package/base-files/files/profile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/base-files/files/profile (limited to 'package/base-files/files') diff --git a/package/base-files/files/profile b/package/base-files/files/profile new file mode 100644 index 000000000..eb3015d46 --- /dev/null +++ b/package/base-files/files/profile @@ -0,0 +1,16 @@ +export PATH=/bin:/sbin:/usr/bin:/usr/sbin +export EDITOR=/bin/vi +if [[ $(id -u) = 0 ]]; then + export PS1='`whoami`@`hostname`:`pwd` # ' +else + export PS1='`whoami`@`hostname`:`pwd` $ ' +fi +cat /etc/banner 2>&- +[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi +[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; } +[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 "$@"; } +alias l='ls -lF' +alias la='ls -A' +alias ll='ls -alF' +alias ro='mount -o remount,ro /' +alias rw='mount -o remount,rw /' -- cgit v1.2.3