ln -svf lib /usr/lib64
endif
+ifeq "$(BUILD_ARCH)" "riscv64"
+ ln -svf . /lib/lp64d
+ ln -svf . /usr/lib/lp64d
+endif
+
# Symlinks
# for this reason, stage2 rebuild will broke the iso:perl, grubbatch
-ln -sv $(TOOLS_DIR)/bin/{bash,cat,echo,pwd,stty} /bin
# Config files
cp -rvf $(DIR_SRC)/config/etc/* /etc;
+ [ ! -d "$(DIR_SRC)/config/etc-$(BUILD_ARCH)" ] || cp -rvf $(DIR_SRC)/config/etc-$(BUILD_ARCH)/* /etc
cp -rvf $(DIR_SRC)/config/lib/* /lib;
touch /etc/{fs,m}tab
echo "$(NAME) v$(VERSION) - $(SLOGAN)" > /etc/issue
echo "===============================" >> /etc/issue
echo "\n running on \s \r \m" >> /etc/issue
+ -cat /etc/motd >> /etc/issue
# Bash startup files
install --directory --mode=0755 --owner=root --group=root /etc/profile.d