diff options
author | newton <newton@FreeBSD.org> | 1999-12-08 12:13:13 +0000 |
---|---|---|
committer | newton <newton@FreeBSD.org> | 1999-12-08 12:13:13 +0000 |
commit | 96f23205602e9ea1b80faae389bd1d57640b0f1f (patch) | |
tree | 46c5420ba98527243375fc7706a0b9eae7a79c67 | |
parent | c0fe21f0b949b5dc86ba43815b0b6a145ca2a48e (diff) | |
download | FreeBSD-src-96f23205602e9ea1b80faae389bd1d57640b0f1f.zip FreeBSD-src-96f23205602e9ea1b80faae389bd1d57640b0f1f.tar.gz |
Add support for compiling SVR4 as a static module
("AND THE CROWD GOES... uh.")
Tested by: Joerg Wunsch <joerg_wunsch@interface-business.de>
-rw-r--r-- | sys/conf/files.i386 | 32 | ||||
-rw-r--r-- | sys/conf/options.i386 | 3 | ||||
-rw-r--r-- | sys/i386/conf/files.i386 | 32 | ||||
-rw-r--r-- | sys/i386/conf/options.i386 | 3 |
4 files changed, 70 insertions, 0 deletions
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386 index b86babc..7082960 100644 --- a/sys/conf/files.i386 +++ b/sys/conf/files.i386 @@ -13,12 +13,24 @@ linux_genassym optional compat_linux \ no-obj no-implicit-rule \ clean "linux_genassym" # +svr4_genassym optional compat_svr4 \ + dependency "$S/i386/svr4/svr4_genassym.c $S/svr4/svr4.h" \ + compile-with "${CC} ${CFLAGS} ${PARAM} -UKERNEL -o $@ $<" \ + no-obj no-implicit-rule \ + clean "svr4_genassym" +# linux_assym.h optional compat_linux \ dependency "linux_genassym" \ compile-with "./linux_genassym > $@" \ no-obj no-implicit-rule before-depend \ clean "linux_assym.h" # +svr4_assym.h optional compat_svr4 \ + dependency "svr4_genassym" \ + compile-with "./svr4_genassym > $@" \ + no-obj no-implicit-rule before-depend \ + clean "svr4_assym.h" +# font.h optional sc_dflt_font \ compile-with "uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'static u_char dflt_font_16[16*256] = {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c 'static u_char dflt_font_14[14*256] = {' '};' < ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'static u_char dflt_font_8[8*256] = {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" \ no-obj no-implicit-rule before-depend \ @@ -337,6 +349,26 @@ i386/linux/linux_stats.c optional compat_linux i386/linux/linux_sysent.c optional compat_linux i386/linux/linux_sysvec.c optional compat_linux i386/linux/linux_util.c optional compat_linux +svr4/imgact_svr4.c optional compat_svr4 +svr4/svr4_fcntl.c optional compat_svr4 +svr4/svr4_filio.c optional compat_svr4 +svr4/svr4_ioctl.c optional compat_svr4 +svr4/svr4_ipc.c optional compat_svr4 +svr4/svr4_misc.c optional compat_svr4 +svr4/svr4_resource.c optional compat_svr4 +svr4/svr4_signal.c optional compat_svr4 +svr4/svr4_socket.c optional compat_svr4 +svr4/svr4_sockio.c optional compat_svr4 +svr4/svr4_stat.c optional compat_svr4 +svr4/svr4_stream.c optional compat_svr4 +svr4/svr4_syscallnames.c optional compat_svr4 +svr4/svr4_sysent.c optional compat_svr4 +svr4/svr4_sysvec.c optional compat_svr4 +svr4/svr4_termios.c optional compat_svr4 +svr4/svr4_ttold.c optional compat_svr4 +i386/svr4/svr4_locore.s optional compat_svr4 \ + dependency "svr4_assym.h" +i386/svr4/svr4_machdep.c optional compat_svr4 i4b/layer1/i4b_asuscom_ipac.c optional isic i4b/layer1/i4b_avm_a1.c optional isic i4b/layer1/i4b_avm_fritz_pci.c optional isic diff --git a/sys/conf/options.i386 b/sys/conf/options.i386 index 22c3edf..376f048 100644 --- a/sys/conf/options.i386 +++ b/sys/conf/options.i386 @@ -12,6 +12,9 @@ COMPAT_LINUX opt_dontuse.h DEBUG_LINUX opt_linux.h +COMPAT_SVR4 opt_svr4.h +DEBUG_SVR4 opt_svr4.h + PPC_DEBUG opt_ppc.h SHOW_BUSYBUFS diff --git a/sys/i386/conf/files.i386 b/sys/i386/conf/files.i386 index b86babc..7082960 100644 --- a/sys/i386/conf/files.i386 +++ b/sys/i386/conf/files.i386 @@ -13,12 +13,24 @@ linux_genassym optional compat_linux \ no-obj no-implicit-rule \ clean "linux_genassym" # +svr4_genassym optional compat_svr4 \ + dependency "$S/i386/svr4/svr4_genassym.c $S/svr4/svr4.h" \ + compile-with "${CC} ${CFLAGS} ${PARAM} -UKERNEL -o $@ $<" \ + no-obj no-implicit-rule \ + clean "svr4_genassym" +# linux_assym.h optional compat_linux \ dependency "linux_genassym" \ compile-with "./linux_genassym > $@" \ no-obj no-implicit-rule before-depend \ clean "linux_assym.h" # +svr4_assym.h optional compat_svr4 \ + dependency "svr4_genassym" \ + compile-with "./svr4_genassym > $@" \ + no-obj no-implicit-rule before-depend \ + clean "svr4_assym.h" +# font.h optional sc_dflt_font \ compile-with "uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'static u_char dflt_font_16[16*256] = {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c 'static u_char dflt_font_14[14*256] = {' '};' < ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'static u_char dflt_font_8[8*256] = {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" \ no-obj no-implicit-rule before-depend \ @@ -337,6 +349,26 @@ i386/linux/linux_stats.c optional compat_linux i386/linux/linux_sysent.c optional compat_linux i386/linux/linux_sysvec.c optional compat_linux i386/linux/linux_util.c optional compat_linux +svr4/imgact_svr4.c optional compat_svr4 +svr4/svr4_fcntl.c optional compat_svr4 +svr4/svr4_filio.c optional compat_svr4 +svr4/svr4_ioctl.c optional compat_svr4 +svr4/svr4_ipc.c optional compat_svr4 +svr4/svr4_misc.c optional compat_svr4 +svr4/svr4_resource.c optional compat_svr4 +svr4/svr4_signal.c optional compat_svr4 +svr4/svr4_socket.c optional compat_svr4 +svr4/svr4_sockio.c optional compat_svr4 +svr4/svr4_stat.c optional compat_svr4 +svr4/svr4_stream.c optional compat_svr4 +svr4/svr4_syscallnames.c optional compat_svr4 +svr4/svr4_sysent.c optional compat_svr4 +svr4/svr4_sysvec.c optional compat_svr4 +svr4/svr4_termios.c optional compat_svr4 +svr4/svr4_ttold.c optional compat_svr4 +i386/svr4/svr4_locore.s optional compat_svr4 \ + dependency "svr4_assym.h" +i386/svr4/svr4_machdep.c optional compat_svr4 i4b/layer1/i4b_asuscom_ipac.c optional isic i4b/layer1/i4b_avm_a1.c optional isic i4b/layer1/i4b_avm_fritz_pci.c optional isic diff --git a/sys/i386/conf/options.i386 b/sys/i386/conf/options.i386 index 22c3edf..376f048 100644 --- a/sys/i386/conf/options.i386 +++ b/sys/i386/conf/options.i386 @@ -12,6 +12,9 @@ COMPAT_LINUX opt_dontuse.h DEBUG_LINUX opt_linux.h +COMPAT_SVR4 opt_svr4.h +DEBUG_SVR4 opt_svr4.h + PPC_DEBUG opt_ppc.h SHOW_BUSYBUFS |