Hello,

I'm not a developer and I don't have any programming skills ... sadly ... ;-(

From time to time I build my own releases on a i386.
When I do a "make release" I would like 2 additional kernels to be build automatically.
A (standard) Make release builds the following kernels:
1) bsd
2) bsd.mp
3) bsd.rd

I would like to have the following:
1) bsd
2) bsd.mp
3) bsd.rd
and now my custom kernels
4) bsd.acpi (build from /usr/src/sys/arch/i386/conf/GENERIC.acpi)
5) bsd.mp.acpi (build from /usr/src/sys/arch/i386/conf/GENERIC.MP.acpi)

I tried to do this by modifying the following file:
(I must admit that I mostly guessed what I was writing ;-( )
/usr/src/etc/etc.i386/Makefile.inc

#       $OpenBSD: Makefile.inc,v 1.16 2006/07/27 02:53:38 deraadt Exp $

.ifdef DESTDIR
snap_md: bsd bsd.mp bsd.acpi bsd.mp.acpi bootblocks notes distrib
        cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC/bsd \
            ${DESTDIR}/snapshot/bsd
        cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC.MP/bsd \
            ${DESTDIR}/snapshot/bsd.mp
        cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC.acpi/bsd \
            ${DESTDIR}/snapshot/bsd.acpi
        cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC.MP.acpi/bsd \
            ${DESTDIR}/snapshot/bsd.mp.acpi

bsd:
        cd ${.CURDIR}/../sys/arch/i386/conf && config GENERIC
        cd ${.CURDIR}/../sys/arch/i386/compile/GENERIC && \
            ${MAKE} clean && ${MAKE} depend && exec ${MAKE}

bsd.mp:
        cd ${.CURDIR}/../sys/arch/i386/conf && config GENERIC.MP
        cd ${.CURDIR}/../sys/arch/i386/compile/GENERIC.MP && \
            ${MAKE} clean && ${MAKE} depend && exec ${MAKE}
bsd.acpi:
        cd ${.CURDIR}/../sys/arch/i386/conf && config GENERIC.acpi
        cd ${.CURDIR}/../sys/arch/i386/compile/GENERIC.acpi && \
            ${MAKE} clean && ${MAKE} depend && exec ${MAKE}

bsd.mp.acpi:
        cd ${.CURDIR}/../sys/arch/i386/conf && config GENERIC.MP.acpi
        cd ${.CURDIR}/../sys/arch/i386/compile/GENERIC.MP.acpi && \
            ${MAKE} clean && ${MAKE} depend && exec ${MAKE}

bootblocks:
        cp ${DESTDIR}/usr/mdec/pxeboot ${DESTDIR}/snapshot
        cp ${DESTDIR}/usr/mdec/cdboot ${DESTDIR}/snapshot
        cp ${DESTDIR}/usr/mdec/cdbr ${DESTDIR}/snapshot

notes:
        cp ${.CURDIR}/etc.i386/INSTALL.* ${DESTDIR}/snapshot

.PHONY: bsd bsd.mp bsd.acpi bsd.mp.acpi bootblocks notes

.endif  # DESTDIR check

And of course I does not work ;-)
$ sudo make release
"etc.i386/Makefile.inc", line 24: Need an operator
"etc.i386/Makefile.inc", line 26: Need an operator
"etc.i386/Makefile.inc", line 29: Need an operator
"etc.i386/Makefile.inc", line 31: Need an operator
Fatal errors encountered -- cannot continue

1) Can I do this that way, what is the actual problem?
2) Do I have to modify another file?
3) I would really appreciate if you could tell me which one?

Thank you very much for helping!!!
Kind regards,
Didier

Reply via email to