mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add /etc/machine.
This commit is contained in:
parent
bdd9e2851b
commit
d85a0b70cc
2 changed files with 4 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -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' && \
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue