summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2000-09-10 12:15:30 +0000
committerdfr <dfr@FreeBSD.org>2000-09-10 12:15:30 +0000
commitf7c899ec29a293e3020f768d501d7e8661678e9d (patch)
tree20b17ce574fbab972f06916719d5d2dd1b1c6732 /sys/boot/ficl
parentc5a4794750331e1d26923da6e7013ab459f5e3a6 (diff)
downloadFreeBSD-src-f7c899ec29a293e3020f768d501d7e8661678e9d.zip
FreeBSD-src-f7c899ec29a293e3020f768d501d7e8661678e9d.tar.gz
Only build PnP parts if the platform supports PnP.
Diffstat (limited to 'sys/boot/ficl')
-rw-r--r--sys/boot/ficl/Makefile3
-rw-r--r--sys/boot/ficl/loader.c4
-rw-r--r--sys/boot/ficl/words.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 4f19de8..a7825d9 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -11,6 +11,9 @@ CFLAGS+= -mno-fp-regs
CFLAGS+= -mpreferred-stack-boundary=2
.endif
.ifmake testmain
+.if HAVE_PNP
+CFLAGS+= -DHAVE_PNP
+.endif
CFLAGS+= -DTESTMAIN -D_TESTMAIN
SRCS+= testmain.c
PROG= testmain
diff --git a/sys/boot/ficl/loader.c b/sys/boot/ficl/loader.c
index 34bdb7f..5f32134 100644
--- a/sys/boot/ficl/loader.c
+++ b/sys/boot/ficl/loader.c
@@ -242,6 +242,8 @@ ficlFindfile(FICL_VM *pVM)
return;
}
+#ifdef HAVE_PNP
+
void
ficlPnpdevices(FICL_VM *pVM)
{
@@ -272,6 +274,8 @@ ficlPnphandlers(FICL_VM *pVM)
return;
}
+#endif
+
void
ficlCcall(FICL_VM *pVM)
{
diff --git a/sys/boot/ficl/words.c b/sys/boot/ficl/words.c
index 0136610..36ea902 100644
--- a/sys/boot/ficl/words.c
+++ b/sys/boot/ficl/words.c
@@ -4833,8 +4833,10 @@ void ficlCompileCore(FICL_DICT *dp)
dictAppendWord(dp, "copyin", ficlCopyin, FW_DEFAULT);
dictAppendWord(dp, "copyout", ficlCopyout, FW_DEFAULT);
dictAppendWord(dp, "findfile", ficlFindfile, FW_DEFAULT);
+#ifdef HAVE_PNP
dictAppendWord(dp, "pnpdevices",ficlPnpdevices, FW_DEFAULT);
dictAppendWord(dp, "pnphandlers",ficlPnphandlers, FW_DEFAULT);
+#endif
dictAppendWord(dp, "ccall", ficlCcall, FW_DEFAULT);
#endif
OpenPOWER on IntegriCloud