mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
All these packages are part of Buildroot and thus under
GPL-2.0-or-later unless stated otherwise, as described in COPYING.
package/skeleton-custom is excluded because it provides a way to copy
skeleton data from any location chosen by the user, the license of
which is unknown to Buildroot.
Signed-off-by: Fiona Klute (Othermo GmbH) <fiona.klute@gmx.de>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 927c575964)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# skeleton-init-sysv
|
|
#
|
|
################################################################################
|
|
|
|
SKELETON_INIT_SYSV_LICENSE = GPL-2.0-or-later
|
|
|
|
# The skeleton can't depend on the toolchain, since all packages depends on the
|
|
# skeleton and the toolchain is a target package, as is skeleton.
|
|
# Hence, skeleton would depends on the toolchain and the toolchain would depend
|
|
# on skeleton.
|
|
SKELETON_INIT_SYSV_ADD_TOOLCHAIN_DEPENDENCY = NO
|
|
SKELETON_INIT_SYSV_ADD_SKELETON_DEPENDENCY = NO
|
|
|
|
SKELETON_INIT_SYSV_DEPENDENCIES = skeleton-init-common
|
|
|
|
SKELETON_INIT_SYSV_PROVIDES = skeleton
|
|
|
|
define SKELETON_INIT_SYSV_INSTALL_TARGET_CMDS
|
|
$(call SYSTEM_RSYNC,$(SKELETON_INIT_SYSV_PKGDIR)/skeleton,$(TARGET_DIR))
|
|
endef
|
|
|
|
# enable/disable swapon/off calls depending on availability of the commands
|
|
define SKELETON_INIT_SYSV_SWAPON_SWAPOFF_INITTAB
|
|
if [ -x $(TARGET_DIR)/sbin/swapon -a -x $(TARGET_DIR)/sbin/swapoff ]; then \
|
|
$(SED) '/^#.*\/sbin\/swap/s/^#\+[[:blank:]]*//' $(TARGET_DIR)/etc/inittab; \
|
|
else \
|
|
$(SED) '/^[^#].*\/sbin\/swap/s/^/#/' $(TARGET_DIR)/etc/inittab; \
|
|
fi
|
|
endef
|
|
|
|
SKELETON_INIT_SYSV_TARGET_FINALIZE_HOOKS += SKELETON_INIT_SYSV_SWAPON_SWAPOFF_INITTAB
|
|
|
|
$(eval $(generic-package))
|