generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
7
package/skeleton-init-openrc/Config.in
Normal file
7
package/skeleton-init-openrc/Config.in
Normal file
@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_SKELETON_INIT_OPENRC
|
||||
bool
|
||||
select BR2_PACKAGE_HAS_SKELETON
|
||||
select BR2_PACKAGE_SKELETON_INIT_COMMON
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_SKELETON
|
||||
default "skeleton-init-openrc" if BR2_PACKAGE_SKELETON_INIT_OPENRC
|
||||
37
package/skeleton-init-openrc/skeleton-init-openrc.mk
Normal file
37
package/skeleton-init-openrc/skeleton-init-openrc.mk
Normal file
@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# skeleton-init-openrc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# 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_OPENRC_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
SKELETON_INIT_OPENRC_ADD_SKELETON_DEPENDENCY = NO
|
||||
|
||||
SKELETON_INIT_OPENRC_DEPENDENCIES = skeleton-init-common
|
||||
|
||||
SKELETON_INIT_OPENRC_PROVIDES = skeleton
|
||||
|
||||
ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y)
|
||||
# Comment /dev/root entry in fstab. When openrc does not find fstab entry for
|
||||
# "/", it will try to remount "/" as "rw".
|
||||
define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW
|
||||
$(SED) '\:^/dev/root[[:blank:]]:s/^/# /' $(TARGET_DIR)/etc/fstab
|
||||
endef
|
||||
else
|
||||
# Uncomment /dev/root entry in fstab which has "ro" option so openrc notices
|
||||
# it and doesn't remount root to rw.
|
||||
define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW
|
||||
$(SED) '\:^#[[:blank:]]*/dev/root[[:blank:]]:s/^# //' $(TARGET_DIR)/etc/fstab
|
||||
endef
|
||||
endif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
|
||||
|
||||
define SKELETON_INIT_OPENRC_INSTALL_TARGET_CMDS
|
||||
$(call SYSTEM_RSYNC,$(SKELETON_INIT_OPENRC_PKGDIR)/skeleton,$(TARGET_DIR))
|
||||
$(SKELETON_INIT_OPENRC_ROOT_RO_OR_RW)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
1
package/skeleton-init-openrc/skeleton/dev/log
Symbolic link
1
package/skeleton-init-openrc/skeleton/dev/log
Symbolic link
@ -0,0 +1 @@
|
||||
../tmp/log
|
||||
4
package/skeleton-init-openrc/skeleton/etc/fstab
Normal file
4
package/skeleton-init-openrc/skeleton/etc/fstab
Normal file
@ -0,0 +1,4 @@
|
||||
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||
/dev/root / ext2 ro,noauto 0 0
|
||||
tmpfs /tmp tmpfs mode=1777 0 0
|
||||
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
|
||||
@ -0,0 +1 @@
|
||||
/etc/init.d/sysv-rcs
|
||||
1
package/skeleton-init-openrc/skeleton/var/cache
Symbolic link
1
package/skeleton-init-openrc/skeleton/var/cache
Symbolic link
@ -0,0 +1 @@
|
||||
../tmp
|
||||
1
package/skeleton-init-openrc/skeleton/var/lib/misc
Symbolic link
1
package/skeleton-init-openrc/skeleton/var/lib/misc
Symbolic link
@ -0,0 +1 @@
|
||||
../../tmp
|
||||
1
package/skeleton-init-openrc/skeleton/var/lock
Symbolic link
1
package/skeleton-init-openrc/skeleton/var/lock
Symbolic link
@ -0,0 +1 @@
|
||||
../run/lock
|
||||
1
package/skeleton-init-openrc/skeleton/var/log
Symbolic link
1
package/skeleton-init-openrc/skeleton/var/log
Symbolic link
@ -0,0 +1 @@
|
||||
../tmp
|
||||
1
package/skeleton-init-openrc/skeleton/var/run
Symbolic link
1
package/skeleton-init-openrc/skeleton/var/run
Symbolic link
@ -0,0 +1 @@
|
||||
../run
|
||||
1
package/skeleton-init-openrc/skeleton/var/spool
Symbolic link
1
package/skeleton-init-openrc/skeleton/var/spool
Symbolic link
@ -0,0 +1 @@
|
||||
../tmp
|
||||
1
package/skeleton-init-openrc/skeleton/var/tmp
Symbolic link
1
package/skeleton-init-openrc/skeleton/var/tmp
Symbolic link
@ -0,0 +1 @@
|
||||
../tmp
|
||||
Reference in New Issue
Block a user