1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# skeleton-init-sysv 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_SYSV_ADD_TOOLCHAIN_DEPENDENCY = NO 12*4882a593SmuzhiyunSKELETON_INIT_SYSV_ADD_SKELETON_DEPENDENCY = NO 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunSKELETON_INIT_SYSV_DEPENDENCIES = skeleton-init-common 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunSKELETON_INIT_SYSV_PROVIDES = skeleton 17*4882a593Smuzhiyun 18*4882a593Smuzhiyundefine SKELETON_INIT_SYSV_INSTALL_TARGET_CMDS 19*4882a593Smuzhiyun $(call SYSTEM_RSYNC,$(SKELETON_INIT_SYSV_PKGDIR)/skeleton,$(TARGET_DIR)) 20*4882a593Smuzhiyunendef 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun# enable/disable swapon/off calls depending on availability of the commands 23*4882a593Smuzhiyundefine SKELETON_INIT_SYSV_SWAPON_SWAPOFF_INITTAB 24*4882a593Smuzhiyun if [ -x $(TARGET_DIR)/sbin/swapon -a -x $(TARGET_DIR)/sbin/swapoff ]; then \ 25*4882a593Smuzhiyun $(SED) '/^#.*\/sbin\/swap/s/^#\+[[:blank:]]*//' $(TARGET_DIR)/etc/inittab; \ 26*4882a593Smuzhiyun else \ 27*4882a593Smuzhiyun $(SED) '/^[^#].*\/sbin\/swap/s/^/#/' $(TARGET_DIR)/etc/inittab; \ 28*4882a593Smuzhiyun fi 29*4882a593Smuzhiyunendef 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunSKELETON_INIT_SYSV_TARGET_FINALIZE_HOOKS += SKELETON_INIT_SYSV_SWAPON_SWAPOFF_INITTAB 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun$(eval $(generic-package)) 34