diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-26 22:11:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-26 22:11:39 +0000 |
commit | cf73c4ff4bd72c5b565aa20b4d28e922b49c282a (patch) | |
tree | 47f31973b2218f31aa239bf603f7e139c6f6e20f /sys/arch/moko | |
parent | a76c37785eb21eb31565d5c29545230eb5eafee4 (diff) |
next step towards unification: make all the genassym chunks handle both
arch and machine dependent files (and add the missing files)
ok miod drahn
Diffstat (limited to 'sys/arch/moko')
-rw-r--r-- | sys/arch/moko/conf/Makefile.moko | 17 | ||||
-rw-r--r-- | sys/arch/moko/moko/genassym.cf | 1 |
2 files changed, 10 insertions, 8 deletions
diff --git a/sys/arch/moko/conf/Makefile.moko b/sys/arch/moko/conf/Makefile.moko index b2625d7cf89..ff6cc74f7b0 100644 --- a/sys/arch/moko/conf/Makefile.moko +++ b/sys/arch/moko/conf/Makefile.moko @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.moko,v 1.7 2010/04/26 20:52:50 deraadt Exp $ +# $OpenBSD: Makefile.moko,v 1.8 2010/04/26 22:11:37 deraadt Exp $ # This makefile is constructed from a machine description: # config machineid @@ -121,10 +121,11 @@ LINKFLAGS+= -x %LOAD -assym.h: $S/kern/genassym.sh ${_archdir}/arm/genassym.cf Makefile - cat ${_archdir}/arm/genassym.cf | \ - sh $S/kern/genassym.sh ${CC} ${CFLAGS} \ - ${CPPFLAGS} ${PARAM} > assym.h.tmp && \ +assym.h: $S/kern/genassym.sh Makefile \ + ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf + cat ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf | \ + sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PARAM} | \ + sort -u > assym.h.tmp && \ mv -f assym.h.tmp assym.h param.c: $S/conf/param.c @@ -174,9 +175,9 @@ depend:: .depend .if ${SFILES} != "" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} .endif - cat ${_archdir}/arm/genassym.cf | \ - sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ - ${CPPFLAGS} + cat ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf | \ + sh $S/kern/genassym.sh ${MKDEP} ${CFLAGS} ${CPPFLAGS} | \ + sort -u > assym.dep @sed -e 's/.*\.o: /assym.h: /' -e 's/\/tmp\/genassym_c.[^ ]*//' \ < assym.dep >> .depend @rm -f assym.dep diff --git a/sys/arch/moko/moko/genassym.cf b/sys/arch/moko/moko/genassym.cf new file mode 100644 index 00000000000..679dcad021f --- /dev/null +++ b/sys/arch/moko/moko/genassym.cf @@ -0,0 +1 @@ +# $OpenBSD: genassym.cf,v 1.1 2010/04/26 22:11:38 deraadt Exp $ |