|
@@ -1,6 +1,34 @@
|
|
# This file is part of the OpenADK project. OpenADK is copyrighted
|
|
# This file is part of the OpenADK project. OpenADK is copyrighted
|
|
# material, please see the LICENCE file in the top-level directory.
|
|
# material, please see the LICENCE file in the top-level directory.
|
|
|
|
|
|
|
|
+# relative paths, like 'mksh' or '../usr/bin/foosh'
|
|
|
|
+ifeq (${ADK_BINSH_ASH},y)
|
|
|
|
+BINSH:=ash
|
|
|
|
+else ifeq (${ADK_BINSH_BASH},y)
|
|
|
|
+BINSH:=bash
|
|
|
|
+else ifeq (${ADK_BINSH_MKSH},y)
|
|
|
|
+BINSH:=mksh
|
|
|
|
+else ifeq (${ADK_BINSH_ZSH},y)
|
|
|
|
+BINSH:=zsh
|
|
|
|
+else
|
|
|
|
+$(error No /bin/sh configured!)
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+# absolute paths
|
|
|
|
+ifeq (${ADK_ROOTSH_ASH},y)
|
|
|
|
+ROOTSH:=/bin/ash
|
|
|
|
+else ifeq (${ADK_ROOTSH_BASH},y)
|
|
|
|
+ROOTSH:=/bin/bash
|
|
|
|
+else ifeq (${ADK_ROOTSH_MKSH},y)
|
|
|
|
+ROOTSH:=/bin/mksh
|
|
|
|
+else ifeq (${ADK_ROOTSH_TCSH},y)
|
|
|
|
+ROOTSH:=/usr/bin/tcsh
|
|
|
|
+else ifeq (${ADK_ROOTSH_ZSH},y)
|
|
|
|
+ROOTSH:=/bin/zsh
|
|
|
|
+else
|
|
|
|
+$(error No login shell configured!)
|
|
|
|
+endif
|
|
|
|
+
|
|
imageprepare: image-prepare-post extra-install
|
|
imageprepare: image-prepare-post extra-install
|
|
|
|
|
|
# if an extra directory exist in TOPDIR, copy all content over the
|
|
# if an extra directory exist in TOPDIR, copy all content over the
|
|
@@ -20,6 +48,9 @@ image-prepare-post:
|
|
mkfontdir ${TARGET_DIR}/usr/share/fonts/X11/$${i}; \
|
|
mkfontdir ${TARGET_DIR}/usr/share/fonts/X11/$${i}; \
|
|
done; \
|
|
done; \
|
|
fi
|
|
fi
|
|
|
|
+ sed -i '/^root:/s!:/bin/sh$$!:${ROOTSH}!' ${TARGET_DIR}/etc/passwd
|
|
|
|
+ -rm -f ${TARGET_DIR}/bin/sh
|
|
|
|
+ ln -sf ${BINSH} ${TARGET_DIR}/bin/sh
|
|
|
|
|
|
KERNEL_PKGDIR:=$(LINUX_BUILD_DIR)/kernel-pkg
|
|
KERNEL_PKGDIR:=$(LINUX_BUILD_DIR)/kernel-pkg
|
|
KERNEL_PKG:=$(PACKAGE_DIR)/kernel_$(KERNEL_VERSION)_$(CPU_ARCH).$(PKG_SUFFIX)
|
|
KERNEL_PKG:=$(PACKAGE_DIR)/kernel_$(KERNEL_VERSION)_$(CPU_ARCH).$(PKG_SUFFIX)
|