1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# skeleton-init-openrc 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun# The skeleton can't depend on the toolchain, since all packages depends on the 8*4882a593Smuzhiyun# skeleton and the toolchain is a target package, as is skeleton. 9*4882a593Smuzhiyun# Hence, skeleton would depends on the toolchain and the toolchain would depend 10*4882a593Smuzhiyun# on skeleton. 11*4882a593SmuzhiyunSKELETON_INIT_OPENRC_ADD_TOOLCHAIN_DEPENDENCY = NO 12*4882a593SmuzhiyunSKELETON_INIT_OPENRC_ADD_SKELETON_DEPENDENCY = NO 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunSKELETON_INIT_OPENRC_DEPENDENCIES = skeleton-init-common 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunSKELETON_INIT_OPENRC_PROVIDES = skeleton 17*4882a593Smuzhiyun 18*4882a593Smuzhiyunifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y) 19*4882a593Smuzhiyun# Comment /dev/root entry in fstab. When openrc does not find fstab entry for 20*4882a593Smuzhiyun# "/", it will try to remount "/" as "rw". 21*4882a593Smuzhiyundefine SKELETON_INIT_OPENRC_ROOT_RO_OR_RW 22*4882a593Smuzhiyun $(SED) '\:^/dev/root[[:blank:]]:s/^/# /' $(TARGET_DIR)/etc/fstab 23*4882a593Smuzhiyunendef 24*4882a593Smuzhiyunelse 25*4882a593Smuzhiyun# Uncomment /dev/root entry in fstab which has "ro" option so openrc notices 26*4882a593Smuzhiyun# it and doesn't remount root to rw. 27*4882a593Smuzhiyundefine SKELETON_INIT_OPENRC_ROOT_RO_OR_RW 28*4882a593Smuzhiyun $(SED) '\:^#[[:blank:]]*/dev/root[[:blank:]]:s/^# //' $(TARGET_DIR)/etc/fstab 29*4882a593Smuzhiyunendef 30*4882a593Smuzhiyunendif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW 31*4882a593Smuzhiyun 32*4882a593Smuzhiyundefine SKELETON_INIT_OPENRC_INSTALL_TARGET_CMDS 33*4882a593Smuzhiyun $(call SYSTEM_RSYNC,$(SKELETON_INIT_OPENRC_PKGDIR)/skeleton,$(TARGET_DIR)) 34*4882a593Smuzhiyun $(SKELETON_INIT_OPENRC_ROOT_RO_OR_RW) 35*4882a593Smuzhiyunendef 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun$(eval $(generic-package)) 38