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/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/base-files/Makefile') 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},) -- cgit v1.2.3