summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.post.mk
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-11-01 17:34:04 +0000
committerjhb <jhb@FreeBSD.org>2010-11-01 17:34:04 +0000
commit8372ad0fde50dc7d92cb1ab2439d7ba31188817f (patch)
tree9d99f0a93a1824d7b71e1332560f719227daaf0f /sys/conf/kern.post.mk
parent9e9b0f2c8aa9159675e231c2a511e3f76436a43e (diff)
downloadFreeBSD-src-8372ad0fde50dc7d92cb1ab2439d7ba31188817f.zip
FreeBSD-src-8372ad0fde50dc7d92cb1ab2439d7ba31188817f.tar.gz
Add an x86/include directory to the kernel to hold headers that are common
to amd64, i386, and pc98. The headers are installed to /usr/include/x86 during an installworld, and an 'x86' symlink is created for kernel builds similar to 'machine' so that the headers can be included as <x86/foo.h>. Reviewed by: imp
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r--sys/conf/kern.post.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index c7e6281..80b1bc2 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -169,6 +169,9 @@ _ILINKS= machine
.if ${MACHINE} != ${MACHINE_CPUARCH}
_ILINKS+= ${MACHINE_CPUARCH}
.endif
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+_ILINKS+= x86
+.endif
# Ensure that the link exists without depending on it when it exists.
.for _link in ${_ILINKS}
@@ -181,8 +184,8 @@ ${_ILINKS}:
@case ${.TARGET} in \
machine) \
path=${S}/${MACHINE}/include ;; \
- ${MACHINE_CPUARCH}) \
- path=${S}/${MACHINE_CPUARCH}/include ;; \
+ *) \
+ path=${S}/${.TARGET}/include ;; \
esac ; \
${ECHO} ${.TARGET} "->" $$path ; \
ln -s $$path ${.TARGET}
OpenPOWER on IntegriCloud