Add /etc/machine.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-01-04 22:46:34 +01:00
parent bdd9e2851b
commit d85a0b70cc
2 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,7 @@ endif
for ENTRY in $$(ls -A "$(SYSROOT)" | grep -Ev '^(dev|etc|home|mnt|root|src|tix|tmp|var)$$'); do \
cp -RTv "$(SYSROOT)/$$ENTRY" "$(DESTDIR)/$$ENTRY" || exit $$?; \
done
cp -TPv "$(SYSROOT)/etc/machine" "$(DESTDIR)/etc/machine"
cp -TPv "$(SYSROOT)/etc/os-release" "$(DESTDIR)/etc/os-release"
cp -TPv "$(SYSROOT)/etc/sortix-release" "$(DESTDIR)/etc/sortix-release"
@ -158,6 +159,8 @@ sysroot-system: sysroot-fsh sysroot-base-headers
echo /usr >> "$(SYSROOT)/tix/manifest/system"
echo /var >> "$(SYSROOT)/tix/manifest/system"
echo /var/empty >> "$(SYSROOT)/tix/manifest/system"
echo "$(HOST_MACHINE)" > "$(SYSROOT)/etc/machine"
echo /etc/machine >> "$(SYSROOT)/tix/manifest/system"
(echo 'NAME="Sortix"' && \
echo 'VERSION="$(VERSION)"' && \
echo 'ID=sortix' && \

View File

@ -40,6 +40,7 @@ endif
# Determine the platform the software will run on.
HOST?=$(BUILD)
HOST_MACHINE:=$(shell expr x$(HOST) : 'x\([^-]*\).*')
# Determine the platform the software will target.
TARGET?=$(HOST)