🎈 perf(TSG-11030): 优化 1403 OFED编译时间

优化 1403 OFED编译时间
This commit is contained in:
songyanchao
2022-06-21 01:59:11 -04:00
parent 718e774f75
commit b2a035f2f0

View File

@@ -48,12 +48,14 @@ sysroot-verfile: sysroot-base
sed -i -e "s/^PRETTY_NAME=.*/PRETTY_NAME=\"TSG-OS $(OS_RELEASE_VER) ($(PROFILE_ID_IN_SHORT))\"/" $(TARGET_SYSROOT_DIR)/usr/lib/os-release
sysroot-ansible: sysroot-verfile sysroot-base
mount --bind /proc $(TARGET_SYSROOT_DIR)/proc
cp $(CONFDIR)/yum-CentOS-7.conf $(TARGET_SYSROOT_DIR)/tmp/ -r
cp $(CONFDIR)/resolv.conf $(TARGET_SYSROOT_DIR)/etc/ -r
cp $(TARGET_SYSROOT_DIR)/etc/hosts $(TARGET_SYSROOT_DIR)/tmp/ -r
cp /etc/hosts $(TARGET_SYSROOT_DIR)/etc/ -r
$(TOOLSDIR)/ansible-HAL $(PROFILE_ID) $(PROJECTDIR) $(TARGET_SYSROOT_DIR) /tmp/yum-CentOS-7.conf
cp $(TARGET_SYSROOT_DIR)/tmp/hosts $(TARGET_SYSROOT_DIR)/etc/ -r
umount $(TARGET_SYSROOT_DIR)/proc
sysroot-cleanup:
rm -rf $(TARGET_SYSROOT_DIR)/tmp/*