summaryrefslogtreecommitdiff
path: root/package/base-files/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-23 22:02:03 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-23 22:04:03 +0100
commit71da71d92d57421fb3546986f68e854ae472cf1a (patch)
tree2d7bdbed1aa515928232a5947abd2b7e863b9412 /package/base-files/Makefile
parent3863dc6122a090399e236326f29a1094e6a856e8 (diff)
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.
Diffstat (limited to 'package/base-files/Makefile')
-rw-r--r--package/base-files/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index ae38dcb03..0ae4f795b 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(ADK_TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.1
-PKG_RELEASE:= 19
+PKG_RELEASE:= 20
PKG_SECTION:= base/apps
PKG_DESCR:= basic files and scripts
@@ -67,6 +67,7 @@ endif
chmod 600 $(IDIR_BASE_FILES)/etc/shadow
ifeq ($(ADK_TARGET_WITH_NETDEVICE),y)
cp ./files/interfaces-dhcp $(IDIR_BASE_FILES)/etc/network/interfaces
+ cp ./files/rc.netinfo $(IDIR_BASE_FILES)/etc/
else
cp ./files/interfaces-lo $(IDIR_BASE_FILES)/etc/network/interfaces
endif
@@ -108,6 +109,8 @@ endif
$(SED) 's,\*NP\*,'"$$(awk -F\= '/^ADK_RUNTIME_PASSWORD/ { print $$2 }' $(ADK_TOPDIR)/.config|sed -e 's^\"^^g'),g" \
$(IDIR_BASE_FILES)/etc/shadow
echo $(ADK_RUNTIME_TMPFS_SIZE) > $(IDIR_BASE_FILES)/etc/tmpfs
+ifeq ($(ADK_PACKAGE_MKSH),y)
+ $(CP) ./files/profile $(IDIR_BASE_FILES)/etc/profile
ifeq ($(ADK_TARGET_WITH_ROOT_RW),y)
echo 'export IPKGTMPDIR=/root/.ipkg' >> $(IDIR_BASE_FILES)/etc/profile
else
@@ -116,6 +119,7 @@ endif
ifeq ($(ADK_TARGET_BOARD_BCM28XX),y)
echo 'export LD_LIBRARY_PATH=/opt/vc/lib' >> $(IDIR_BASE_FILES)/etc/profile
endif
+endif
# simple network configuration
ifneq (${ADK_SIMPLE_NETWORK_CONFIG},)