github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/stage1/usr_from_src/libnss.mk (about) 1 SLD_FLAVOR := $(S1_RF_FLAVOR) 2 $(call inc-one,../stdlibdirs.mk) 3 4 $(call setup-stamp-file,UFSN_STAMP) 5 UFSN_LIBNSS_FILES_LINK := libnss_files.so.2 6 UFSN_LIB_PATH := $(shell for l in $(SLD_LOCATIONS); do if [[ -e $${l}/$(UFSN_LIBNSS_FILES_LINK) ]]; then echo $${l}; break; fi; done) 7 8 UFSN_ACI_LIB_PATH := $(S1_RF_ACIROOTFSDIR)$(UFSN_LIB_PATH) 9 10 UFSN_LIBNSS_FILES_PATH := $(UFSN_LIB_PATH)/$(UFSN_LIBNSS_FILES_LINK) 11 UFSN_LIBNSS_FILES_REALPATH := $(shell realpath $(UFSN_LIBNSS_FILES_PATH)) 12 UFSN_LIBNSS_FILES := $(shell basename $(UFSN_LIBNSS_FILES_REALPATH)) 13 UFSN_LIBNSS_FILES_ON_ACI := $(UFSN_ACI_LIB_PATH)/$(UFSN_LIBNSS_FILES) 14 15 S1_RF_SECONDARY_STAMPS += $(UFSN_STAMP) 16 S1_RF_INSTALL_FILES += $(UFSN_LIBNSS_FILES_REALPATH):$(UFSN_LIBNSS_FILES_ON_ACI):- 17 S1_RF_INSTALL_SYMLINKS += $(UFSN_LIBNSS_FILES):$(UFSN_ACI_LIB_PATH)/$(UFSN_LIBNSS_FILES_LINK) 18 19 $(call generate-stamp-rule,$(UFSN_STAMP),$(UFSN_LIBNSS_FILES_ON_ACI),$(UFSN_ACI_LIB_PATH)/$(UFSN_LIBNSS_FILES_LINK)) 20 21 $(call undefine-namespaces,UFSN)