| 19 | | {{{ |
| | 19 | == /root/build-mips.csh == |
| | 20 | Helper script I use to build |
| | 21 | {{{ |
| | 22 | |
| | 23 | }}} |
| | 24 | |
| | 25 | {{{brahm# cat /root/build-mips.csh |
| | 26 | setenv SRCROOT /usr/src-head |
| | 27 | setenv TARGET mips |
| | 28 | setenv TARGET_ARCH mipseb |
| | 29 | setenv TARGET_CPUTYPE mips32 |
| | 30 | setenv KERNCONF AR71XX_BASE |
| | 31 | setenv MAKEOBJDIRPREFIX /usr/obj/mips |
| | 32 | set NFSROOT=/nfsroot/mipseb |
| | 33 | set TFTPBOOT=/tftpboot/ar71xx |
| | 34 | |
| | 35 | |
| | 36 | set MAKEFLAGS=(-DWITHOUT_CDDL \ |
| | 37 | -DWITHOUT_GAMES \ |
| | 38 | -DWITHOUT_DOCS \ |
| | 39 | -DWITHOUT_KERBEROS \ |
| | 40 | -DWITHOUT_ACPI \ |
| | 41 | -DWITHOUT_KERBEROS \ |
| | 42 | -DWITHOUT_RESCUE \ |
| | 43 | -DWITHOUT_MAN \ |
| | 44 | -DWITHOUT_PROFILE \ |
| | 45 | -DWITHOUT_BSNMP \ |
| | 46 | -DWITHOUT_NIS \ |
| | 47 | -DWITHOUT_IPX \ |
| | 48 | -DWITHOUT_ATM) |
| | 49 | |
| | 50 | cd ${SRCROOT} |
| | 51 | #make ${MAKEFLAGS} kernel-toolchain |
| | 52 | #make ${MAKEFLAGS} buildworld |
| | 53 | make ${MAKEFLAGS} buildkernel |
| | 54 | make ${MAKEFLAGS} DESTDIR=${TFTPBOOT} installkernel |
| | 55 | |
| | 56 | |
| | 57 | #make DESTDIR=${NFSROOT} ${MAKEFLAGS} installworld |
| | 58 | #make DESTDIR=${NFSROOT} ${MAKEFLAGS} distrib-dirs |
| | 59 | #make DESTDIR=${NFSROOT} ${MAKEFLAGS} distribution |
| | 60 | |