head 1.19; access; symbols netbsd-10-2-RELEASE:1.18 netbsd-9-5-RELEASE:1.17 netbsd-11-0-RELEASE:1.19 netbsd-11-0-RC7:1.19 netbsd-11-0-RC6:1.19 netbsd-11-0-RC5:1.19 netbsd-11-0-RC4:1.19 netbsd-11-0-RC3:1.19 netbsd-11-0-RC2:1.19 netbsd-11-0-RC1:1.19 perseant-exfatfs-base-20250801:1.19 netbsd-11:1.19.0.4 netbsd-11-base:1.19 netbsd-10-1-RELEASE:1.18 perseant-exfatfs-base-20240630:1.19 perseant-exfatfs:1.19.0.2 perseant-exfatfs-base:1.19 netbsd-8-3-RELEASE:1.17 netbsd-9-4-RELEASE:1.17 netbsd-10-0-RELEASE:1.18 netbsd-10-0-RC6:1.18 netbsd-10-0-RC5:1.18 netbsd-10-0-RC4:1.18 netbsd-10-0-RC3:1.18 netbsd-10-0-RC2:1.18 thorpej-ifq:1.18.0.20 thorpej-ifq-base:1.18 thorpej-altq-separation:1.18.0.18 thorpej-altq-separation-base:1.18 netbsd-10-0-RC1:1.18 netbsd-10:1.18.0.16 netbsd-10-base:1.18 bouyer-sunxi-drm:1.18.0.14 bouyer-sunxi-drm-base:1.18 netbsd-9-3-RELEASE:1.17 thorpej-i2c-spi-conf2:1.18.0.12 thorpej-i2c-spi-conf2-base:1.18 thorpej-futex2:1.18.0.10 thorpej-futex2-base:1.18 thorpej-cfargs2:1.18.0.8 thorpej-cfargs2-base:1.18 cjep_sun2x-base1:1.18 cjep_sun2x:1.18.0.6 cjep_sun2x-base:1.18 cjep_staticlib_x-base1:1.18 netbsd-9-2-RELEASE:1.17 cjep_staticlib_x:1.18.0.4 cjep_staticlib_x-base:1.18 thorpej-i2c-spi-conf:1.18.0.2 thorpej-i2c-spi-conf-base:1.18 thorpej-cfargs:1.17.0.28 thorpej-cfargs-base:1.18 thorpej-futex:1.17.0.26 thorpej-futex-base:1.18 netbsd-9-1-RELEASE:1.17 bouyer-xenpvh-base2:1.17 phil-wifi-20200421:1.17 bouyer-xenpvh-base1:1.17 phil-wifi-20200411:1.17 bouyer-xenpvh:1.17.0.24 bouyer-xenpvh-base:1.17 is-mlppp:1.17.0.22 is-mlppp-base:1.17 phil-wifi-20200406:1.17 netbsd-8-2-RELEASE:1.17 ad-namecache-base3:1.17 netbsd-9-0-RELEASE:1.17 netbsd-9-0-RC2:1.17 ad-namecache-base2:1.17 ad-namecache-base1:1.17 ad-namecache:1.17.0.20 ad-namecache-base:1.17 netbsd-9-0-RC1:1.17 phil-wifi-20191119:1.17 netbsd-9:1.17.0.18 netbsd-9-base:1.17 phil-wifi-20190609:1.17 netbsd-8-1-RELEASE:1.17 netbsd-8-1-RC1:1.17 isaki-audio2:1.17.0.16 isaki-audio2-base:1.17 pgoyette-compat-merge-20190127:1.17 pgoyette-compat-20190127:1.17 pgoyette-compat-20190118:1.17 pgoyette-compat-1226:1.17 pgoyette-compat-1126:1.17 pgoyette-compat-1020:1.17 pgoyette-compat-0930:1.17 pgoyette-compat-0906:1.17 netbsd-7-2-RELEASE:1.16 pgoyette-compat-0728:1.17 netbsd-8-0-RELEASE:1.17 phil-wifi:1.17.0.14 phil-wifi-base:1.17 pgoyette-compat-0625:1.17 netbsd-8-0-RC2:1.17 pgoyette-compat-0521:1.17 pgoyette-compat-0502:1.17 pgoyette-compat-0422:1.17 netbsd-8-0-RC1:1.17 pgoyette-compat-0415:1.17 pgoyette-compat-0407:1.17 pgoyette-compat-0330:1.17 pgoyette-compat-0322:1.17 pgoyette-compat-0315:1.17 netbsd-7-1-2-RELEASE:1.16 pgoyette-compat:1.17.0.12 pgoyette-compat-base:1.17 netbsd-7-1-1-RELEASE:1.16 tls-maxphys-base-20171202:1.17 matt-nb8-mediatek:1.17.0.10 matt-nb8-mediatek-base:1.17 nick-nhusb-base-20170825:1.17 perseant-stdc-iso10646:1.17.0.8 perseant-stdc-iso10646-base:1.17 netbsd-8:1.17.0.6 netbsd-8-base:1.17 prg-localcount2-base3:1.17 prg-localcount2-base2:1.17 prg-localcount2-base1:1.17 prg-localcount2:1.17.0.4 prg-localcount2-base:1.17 pgoyette-localcount-20170426:1.17 bouyer-socketcan-base1:1.17 jdolecek-ncq:1.17.0.2 jdolecek-ncq-base:1.17 pgoyette-localcount-20170320:1.16 netbsd-7-1:1.16.0.14 netbsd-7-1-RELEASE:1.16 netbsd-7-1-RC2:1.16 nick-nhusb-base-20170204:1.16 netbsd-7-nhusb-base-20170116:1.16 bouyer-socketcan:1.16.0.12 bouyer-socketcan-base:1.16 pgoyette-localcount-20170107:1.16 netbsd-7-1-RC1:1.16 nick-nhusb-base-20161204:1.16 pgoyette-localcount-20161104:1.16 netbsd-7-0-2-RELEASE:1.16 nick-nhusb-base-20161004:1.16 localcount-20160914:1.16 netbsd-7-nhusb:1.16.0.10 netbsd-7-nhusb-base:1.16 pgoyette-localcount-20160806:1.16 pgoyette-localcount-20160726:1.16 pgoyette-localcount:1.16.0.8 pgoyette-localcount-base:1.16 nick-nhusb-base-20160907:1.16 nick-nhusb-base-20160529:1.16 netbsd-7-0-1-RELEASE:1.16 nick-nhusb-base-20160422:1.16 nick-nhusb-base-20160319:1.16 nick-nhusb-base-20151226:1.16 netbsd-7-0:1.16.0.6 netbsd-7-0-RELEASE:1.16 nick-nhusb-base-20150921:1.16 netbsd-7-0-RC3:1.16 netbsd-7-0-RC2:1.16 netbsd-7-0-RC1:1.16 nick-nhusb-base-20150606:1.16 nick-nhusb-base-20150406:1.16 nick-nhusb:1.16.0.4 nick-nhusb-base:1.16 netbsd-6-0-6-RELEASE:1.12 netbsd-6-1-5-RELEASE:1.12 netbsd-7:1.16.0.2 netbsd-7-base:1.16 yamt-pagecache-base9:1.14 yamt-pagecache-tag8:1.12 netbsd-6-1-4-RELEASE:1.12 netbsd-6-0-5-RELEASE:1.12 tls-earlyentropy:1.14.0.2 tls-earlyentropy-base:1.15 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.14 riastradh-drm2-base3:1.14 netbsd-6-1-3-RELEASE:1.12 netbsd-6-0-4-RELEASE:1.12 netbsd-6-1-2-RELEASE:1.12 netbsd-6-0-3-RELEASE:1.12 rmind-smpnet-nbase:1.14 netbsd-6-1-1-RELEASE:1.12 riastradh-drm2-base2:1.12 riastradh-drm2-base1:1.12 riastradh-drm2:1.12.0.24 riastradh-drm2-base:1.12 rmind-smpnet:1.12.0.16 rmind-smpnet-base:1.14 netbsd-6-1:1.12.0.22 netbsd-6-0-2-RELEASE:1.12 netbsd-6-1-RELEASE:1.12 khorben-n900:1.12.0.20 netbsd-6-1-RC4:1.12 netbsd-6-1-RC3:1.12 agc-symver:1.12.0.18 agc-symver-base:1.12 netbsd-6-1-RC2:1.12 netbsd-6-1-RC1:1.12 yamt-pagecache-base8:1.12 netbsd-6-0-1-RELEASE:1.12 yamt-pagecache-base7:1.12 matt-nb6-plus-nbase:1.12 yamt-pagecache-base6:1.12 netbsd-6-0:1.12.0.14 netbsd-6-0-RELEASE:1.12 netbsd-6-0-RC2:1.12 tls-maxphys:1.12.0.12 tls-maxphys-base:1.16 matt-nb6-plus:1.12.0.10 matt-nb6-plus-base:1.12 netbsd-6-0-RC1:1.12 jmcneill-usbmp-base10:1.12 yamt-pagecache-base5:1.12 jmcneill-usbmp-base9:1.12 yamt-pagecache-base4:1.12 jmcneill-usbmp-base8:1.12 jmcneill-usbmp-base7:1.12 jmcneill-usbmp-base6:1.12 jmcneill-usbmp-base5:1.12 jmcneill-usbmp-base4:1.12 jmcneill-usbmp-base3:1.12 jmcneill-usbmp-pre-base2:1.12 jmcneill-usbmp-base2:1.12 netbsd-6:1.12.0.8 netbsd-6-base:1.12 jmcneill-usbmp:1.12.0.6 jmcneill-usbmp-base:1.12 jmcneill-audiomp3:1.12.0.4 jmcneill-audiomp3-base:1.12 yamt-pagecache-base3:1.12 yamt-pagecache-base2:1.12 yamt-pagecache:1.12.0.2 yamt-pagecache-base:1.12 rmind-uvmplock-nbase:1.11 jruoho-x86intr:1.11.0.4 cherry-xenmp:1.11.0.2 cherry-xenmp-base:1.11 jym-xensuspend-nbase:1.10 jym-xensuspend-base:1.10 bouyer-quota2:1.9.0.2 rmind-uvmplock-base:1.11 rmind-uvmplock:1.8.0.2 uebayasi-xip-base7:1.7 bouyer-quota2-base:1.7 bouyer-quota2-nbase:1.8; locks; strict; comment @# @; 1.19 date 2024.02.09.16.12.02; author christos; state Exp; branches; next 1.18; commitid fL4HyrX2EdCB9MXE; 1.18 date 2021.03.24.02.53.16; author rin; state Exp; branches; next 1.17; commitid 0kQdMQwZEQzgyvMC; 1.17 date 2017.04.08.19.53.22; author christos; state Exp; branches 1.17.26.1 1.17.28.1; next 1.16; commitid mAo8FJwd588QFLMz; 1.16 date 2014.08.10.17.46.54; author joerg; state Exp; branches 1.16.4.1 1.16.8.1 1.16.12.1; next 1.15; commitid BVMthNG5cp8BdQLx; 1.15 date 2014.08.08.16.56.32; author joerg; state Exp; branches; next 1.14; commitid 309iK37xEyUb0ALx; 1.14 date 2014.01.12.15.26.30; author tsutsui; state Exp; branches 1.14.2.1; next 1.13; commitid YjbnVt32CCoKaQkx; 1.13 date 2013.08.21.06.44.02; author matt; state Exp; branches; next 1.12; commitid lmKiW1j2itVIVh2x; 1.12 date 2011.10.30.20.42.09; author phx; state Exp; branches 1.12.2.1 1.12.12.1 1.12.16.1; next 1.11; 1.11 date 2011.05.25.19.26.21; author phx; state Exp; branches 1.11.4.1; next 1.10; 1.10 date 2011.03.06.18.22.13; author phx; state Exp; branches; next 1.9; 1.9 date 2011.03.06.13.55.12; author phx; state Exp; branches 1.9.2.1; next 1.8; 1.8 date 2011.02.26.20.11.24; author phx; state Exp; branches 1.8.2.1; next 1.7; 1.7 date 2011.01.28.22.15.36; author phx; state Exp; branches; next 1.6; 1.6 date 2011.01.27.16.13.51; author phx; state Exp; branches; next 1.5; 1.5 date 2011.01.27.04.54.40; author nisimura; state Exp; branches; next 1.4; 1.4 date 2011.01.27.04.32.49; author nisimura; state Exp; branches; next 1.3; 1.3 date 2011.01.26.13.36.49; author nisimura; state Exp; branches; next 1.2; 1.2 date 2011.01.23.07.41.38; author nisimura; state Exp; branches; next 1.1; 1.1 date 2011.01.23.01.05.30; author nisimura; state Exp; branches; next ; 1.17.26.1 date 2021.04.03.22.28.37; author thorpej; state Exp; branches; next ; commitid 1gqS07EfPjskJTNC; 1.17.28.1 date 2021.04.03.21.44.48; author thorpej; state Exp; branches; next ; commitid KB7Cr288FrZluTNC; 1.16.4.1 date 2017.08.28.17.51.50; author skrll; state Exp; branches; next ; commitid UQQpnjvcNkUZn05A; 1.16.8.1 date 2017.04.26.02.53.06; author pgoyette; state Exp; branches; next ; commitid ojV02aOSdzvBqZOz; 1.16.12.1 date 2017.04.21.16.53.35; author bouyer; state Exp; branches; next ; commitid dUG7nkTKALCadqOz; 1.14.2.1 date 2014.08.10.06.54.07; author tls; state Exp; branches; next ; commitid 7fY3uHKSIbCABMLx; 1.12.2.1 date 2014.05.22.11.40.06; author yamt; state Exp; branches; next ; commitid VUUXuyNWnt3AKwBx; 1.12.12.1 date 2014.08.20.00.03.22; author tls; state Exp; branches; next 1.12.12.2; commitid jTnpym9Qu0o4R1Nx; 1.12.12.2 date 2017.12.03.11.36.40; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.12.16.1 date 2013.08.28.23.59.21; author rmind; state Exp; branches; next 1.12.16.2; commitid cbp9Ov2uYijlqh3x; 1.12.16.2 date 2014.05.18.17.45.24; author rmind; state Exp; branches; next ; commitid mL5ZYSzpqK6QS2Bx; 1.11.4.1 date 2011.05.25.19.26.21; author jruoho; state dead; branches; next 1.11.4.2; 1.11.4.2 date 2011.06.06.09.06.35; author jruoho; state Exp; branches; next ; 1.9.2.1 date 2011.03.06.13.55.12; author bouyer; state dead; branches; next 1.9.2.2; 1.9.2.2 date 2011.03.06.15.07.55; author bouyer; state Exp; branches; next ; 1.8.2.1 date 2011.02.26.20.11.24; author rmind; state dead; branches; next 1.8.2.2; 1.8.2.2 date 2011.03.05.20.51.47; author rmind; state Exp; branches; next 1.8.2.3; 1.8.2.3 date 2011.04.21.01.41.22; author rmind; state Exp; branches; next 1.8.2.4; 1.8.2.4 date 2011.05.31.03.04.16; author rmind; state Exp; branches; next ; desc @@ 1.19 log @PR/57915: Jan-Benedict Glaw: Use $MKREPRO_TIMESTAMP for repro builds in uBoot images @ text @# $NetBSD: Makefile,v 1.18 2021/03/24 02:53:16 rin Exp $ S= ${.CURDIR}/../../../.. PROG= altboot FILES+= ${PROG}.bin ${PROG}.img NOMAN= # defined SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c memfs.c SRCS+= nif.c fxp.c tlp.c rge.c skg.c stg.c SRCS+= dsk.c pciide.c siisata.c SRCS+= exception.c CLEANFILES+= ${PROG} ${PROG}.bin ${PROG}.img CFLAGS+= -Wall -Wno-main -ffreestanding CFLAGS+= ${${ACTIVE_CC} == "gcc":? -msoft-float :} CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP -DLIBSA_PRINTF_WIDTH_SUPPORT #CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200 #CPPFLAGS+= -DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600 CPPFLAGS+= -nostdinc -I. -I${.OBJDIR} -I${S} DBG= -Os .include .include # XXX SHOULD NOT NEED TO DEFINE THESE! LIBCRT0= LIBCRTI= LIBC= LIBCRTBEGIN= LIBCRTEND= STRIPFLAG= BINMODE= 444 RELOC= 1000000 ENTRY= _start ### find out what to use for libkern KERN_AS= library .include "${S}/lib/libkern/Makefile.inc" LIBKERN= ${KERNLIB} ### find out what to use for libz Z_AS= library .include "${S}/lib/libz/Makefile.inc" LIBZ= ${ZLIB} ### find out what to use for libsa SA_AS= library SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes .include "${S}/lib/libsa/Makefile.inc" LIBSA= ${SALIB} cleandir distclean: .WAIT cleanlibdir cleanlibdir: -rm -rf lib .if ${MKREPRO_TIMESTAMP:Uno} != "no" MKUBOOTIMAGE_TIMESTAMP=-t "${MKREPRO_TIMESTAMP}" .endif ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${_MKTARGET_LINK} ${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \ ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${OBJCOPY} -S -O binary ${PROG} ${PROG}.bin ${TOOL_MKUBOOTIMAGE} -A powerpc -T kernel -C none -O linux \ -a 0x${RELOC} ${MKUBOOTIMAGE_TIMESTAMP} -n ${PROG} \ ${PROG}.bin ${PROG}.img VERSIONFLAGS+=-k .include "${S}/conf/newvers_stand.mk" .include @ 1.18 log @Remove "lib" directory for cleandir. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2017/04/08 19:53:22 christos Exp $ d59 4 d69 3 a71 1 -a 0x${RELOC} -n ${PROG} ${PROG}.bin ${PROG}.img @ 1.17 log @centralize vers.c building for standalone programs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2014/08/10 17:46:54 joerg Exp $ d54 5 @ 1.17.26.1 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2021/03/24 02:53:16 rin Exp $ a53 5 cleandir distclean: .WAIT cleanlibdir cleanlibdir: -rm -rf lib @ 1.17.28.1 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2021/03/24 02:53:16 rin Exp $ a53 5 cleandir distclean: .WAIT cleanlibdir cleanlibdir: -rm -rf lib @ 1.16 log @Put GCC/GAS options under ACTIVE_CC == "gcc". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2014/08/08 16:56:32 joerg Exp $ d11 2 a12 2 SRCS+= exception.c vers.c CLEANFILES+= vers.c ${PROG} ${PROG}.bin ${PROG}.img a53 5 .PHONY: vers.c vers.c: version ${HOST_SH} ${S}/conf/newvers_stand.sh -K \ ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version "sandpoint" d62 3 @ 1.16.4.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2017/04/08 19:53:22 christos Exp $ d11 2 a12 2 SRCS+= exception.c CLEANFILES+= ${PROG} ${PROG}.bin ${PROG}.img d54 5 a66 3 VERSIONFLAGS+=-k .include "${S}/conf/newvers_stand.mk" @ 1.16.8.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2017/04/08 19:53:22 christos Exp $ d11 2 a12 2 SRCS+= exception.c CLEANFILES+= ${PROG} ${PROG}.bin ${PROG}.img d54 5 a66 3 VERSIONFLAGS+=-k .include "${S}/conf/newvers_stand.mk" @ 1.16.12.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2017/04/08 19:53:22 christos Exp $ d11 2 a12 2 SRCS+= exception.c CLEANFILES+= ${PROG} ${PROG}.bin ${PROG}.img d54 5 a66 3 VERSIONFLAGS+=-k .include "${S}/conf/newvers_stand.mk" @ 1.15 log @Don't set -mmultiple or -mno-string for PowerPC, the difference is too small to really matter and it sometimes even increases the size. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2014/01/12 15:26:30 tsutsui Exp $ d13 2 a14 1 CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float @ 1.14 log @Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR. XXX: probabry we should have bsd.saprog.mk or something. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2013/08/21 06:44:02 matt Exp $ d13 1 a13 1 CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float -mmultiple @ 1.14.2.1 log @Rebase. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2014/08/08 16:56:32 joerg Exp $ d13 1 a13 1 CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float @ 1.13 log @Use @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2011/10/30 20:42:09 phx Exp $ d26 1 @ 1.12 log @Make sure to disable interrupts, as U-Boot may call us with interrupts enabled, causing quite unpleasant effects (e.g. by decrementer interrupts). When DEBUG is defined, an exception handler will be installed, which reports about all exceptions while altboot is running, including register dump and stack frame backtrace. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2011/05/25 19:26:21 phx Exp $ d22 1 a35 8 .if !make(obj) && !make(clean) && !make(cleandir) .BEGIN: @@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine @@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc .NOPATH: machine powerpc .endif CLEANFILES+= machine powerpc d58 1 @ 1.12.12.1 log @Rebase to HEAD as of a few days ago. @ text @d1 1 a1 1 # $NetBSD$ d13 1 a13 2 CFLAGS+= -Wall -Wno-main -ffreestanding CFLAGS+= ${${ACTIVE_CC} == "gcc":? -msoft-float :} a21 1 .include a24 1 LIBCRTI= d35 8 a64 1 ${_MKTARGET_LINK} @ 1.12.12.2 log @update from HEAD @ text @d11 2 a12 2 SRCS+= exception.c CLEANFILES+= ${PROG} ${PROG}.bin ${PROG}.img d54 5 a66 3 VERSIONFLAGS+=-k .include "${S}/conf/newvers_stand.mk" @ 1.12.2.1 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2011/10/30 20:42:09 phx Exp $ a21 1 .include a24 1 LIBCRTI= d35 8 a64 1 ${_MKTARGET_LINK} @ 1.12.16.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD$ a21 1 .include d35 8 a64 1 ${_MKTARGET_LINK} @ 1.12.16.2 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12.16.1 2013/08/28 23:59:21 rmind Exp $ a25 1 LIBCRTI= @ 1.11 log @Use printf() from libsa. Ok by nisimura@@. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2011/03/06 18:22:13 phx Exp $ d11 1 a11 1 SRCS+= vers.c @ 1.11.4.1 log @file Makefile was added on branch jruoho-x86intr on 2011-06-06 09:06:35 +0000 @ text @d1 71 @ 1.11.4.2 log @Sync with HEAD. @ text @a0 71 # $NetBSD: Makefile,v 1.11 2011/05/25 19:26:21 phx Exp $ S= ${.CURDIR}/../../../.. PROG= altboot FILES+= ${PROG}.bin ${PROG}.img NOMAN= # defined SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c memfs.c SRCS+= nif.c fxp.c tlp.c rge.c skg.c stg.c SRCS+= dsk.c pciide.c siisata.c SRCS+= vers.c CLEANFILES+= vers.c ${PROG} ${PROG}.bin ${PROG}.img CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float -mmultiple CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP -DLIBSA_PRINTF_WIDTH_SUPPORT #CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200 #CPPFLAGS+= -DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600 CPPFLAGS+= -nostdinc -I. -I${.OBJDIR} -I${S} DBG= -Os .include # XXX SHOULD NOT NEED TO DEFINE THESE! LIBCRT0= LIBC= LIBCRTBEGIN= LIBCRTEND= STRIPFLAG= BINMODE= 444 RELOC= 1000000 ENTRY= _start .if !make(obj) && !make(clean) && !make(cleandir) .BEGIN: @@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine @@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc .NOPATH: machine powerpc .endif CLEANFILES+= machine powerpc ### find out what to use for libkern KERN_AS= library .include "${S}/lib/libkern/Makefile.inc" LIBKERN= ${KERNLIB} ### find out what to use for libz Z_AS= library .include "${S}/lib/libz/Makefile.inc" LIBZ= ${ZLIB} ### find out what to use for libsa SA_AS= library SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes .include "${S}/lib/libsa/Makefile.inc" LIBSA= ${SALIB} .PHONY: vers.c vers.c: version ${HOST_SH} ${S}/conf/newvers_stand.sh -K \ ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version "sandpoint" ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \ ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${OBJCOPY} -S -O binary ${PROG} ${PROG}.bin ${TOOL_MKUBOOTIMAGE} -A powerpc -T kernel -C none -O linux \ -a 0x${RELOC} -n ${PROG} ${PROG}.bin ${PROG}.img .include @ 1.10 log @Suport for loading a kernel from memory (RAM, ROM or Flash). The boot file path should look like "mem:
", where
is the start address, in hex notation, of the file in memory. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2011/03/06 13:55:12 phx Exp $ d11 1 a11 1 SRCS+= printf.c vers.c d15 1 a15 1 CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP @ 1.9 log @New experimental driver for SundanceIT ST1023 / IP1000+ NICs. PHY initialization, media select and MAC address are working, but I found no way to make the chip transmit any frame yet (although it clears the DONE flag). Moved DSK_DECL to globals.h, where NIF_DECL already was. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2011/02/26 20:11:24 phx Exp $ d8 3 a10 2 SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c SRCS+= fxp.c tlp.c rge.c skg.c stg.c dsk.c pciide.c siisata.c @ 1.9.2.1 log @file Makefile was added on branch bouyer-quota2 on 2011-03-06 15:07:55 +0000 @ text @d1 70 @ 1.9.2.2 log @Sync with HEAD @ text @a0 70 # $NetBSD: Makefile,v 1.8 2011/02/26 20:11:24 phx Exp $ S= ${.CURDIR}/../../../.. PROG= altboot FILES+= ${PROG}.bin ${PROG}.img NOMAN= # defined SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c SRCS+= fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c SRCS+= vers.c CLEANFILES+= vers.c ${PROG} ${PROG}.bin ${PROG}.img CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float -mmultiple CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP #CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200 #CPPFLAGS+= -DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600 CPPFLAGS+= -nostdinc -I. -I${.OBJDIR} -I${S} DBG= -Os .include # XXX SHOULD NOT NEED TO DEFINE THESE! LIBCRT0= LIBC= LIBCRTBEGIN= LIBCRTEND= STRIPFLAG= BINMODE= 444 RELOC= 1000000 ENTRY= _start .if !make(obj) && !make(clean) && !make(cleandir) .BEGIN: @@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine @@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc .NOPATH: machine powerpc .endif CLEANFILES+= machine powerpc ### find out what to use for libkern KERN_AS= library .include "${S}/lib/libkern/Makefile.inc" LIBKERN= ${KERNLIB} ### find out what to use for libz Z_AS= library .include "${S}/lib/libz/Makefile.inc" LIBZ= ${ZLIB} ### find out what to use for libsa SA_AS= library SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes .include "${S}/lib/libsa/Makefile.inc" LIBSA= ${SALIB} .PHONY: vers.c vers.c: version ${HOST_SH} ${S}/conf/newvers_stand.sh -K \ ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version "sandpoint" ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \ ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${OBJCOPY} -S -O binary ${PROG} ${PROG}.bin ${TOOL_MKUBOOTIMAGE} -A powerpc -T kernel -C none -O linux \ -a 0x${RELOC} -n ${PROG} ${PROG}.bin ${PROG}.img .include @ 1.8 log @Build altboot.img, which fakes a Linux kernel module, loadable with "bootm", for extremely stripped U-Boot firmware. Arguments are passed through the "bootargs" environment variable, which is detected automatically when using bootm. The startup code also fixes a bug in bootm, which doesn't flush the cache before running the image. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2011/01/28 22:15:36 phx Exp $ d9 2 a10 2 SRCS+= fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c SRCS+= vers.c @ 1.8.2.1 log @file Makefile was added on branch rmind-uvmplock on 2011-03-05 20:51:47 +0000 @ text @d1 70 @ 1.8.2.2 log @sync with head @ text @a0 70 # $NetBSD$ S= ${.CURDIR}/../../../.. PROG= altboot FILES+= ${PROG}.bin ${PROG}.img NOMAN= # defined SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c SRCS+= fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c SRCS+= vers.c CLEANFILES+= vers.c ${PROG} ${PROG}.bin ${PROG}.img CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float -mmultiple CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP #CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200 #CPPFLAGS+= -DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600 CPPFLAGS+= -nostdinc -I. -I${.OBJDIR} -I${S} DBG= -Os .include # XXX SHOULD NOT NEED TO DEFINE THESE! LIBCRT0= LIBC= LIBCRTBEGIN= LIBCRTEND= STRIPFLAG= BINMODE= 444 RELOC= 1000000 ENTRY= _start .if !make(obj) && !make(clean) && !make(cleandir) .BEGIN: @@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine @@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc .NOPATH: machine powerpc .endif CLEANFILES+= machine powerpc ### find out what to use for libkern KERN_AS= library .include "${S}/lib/libkern/Makefile.inc" LIBKERN= ${KERNLIB} ### find out what to use for libz Z_AS= library .include "${S}/lib/libz/Makefile.inc" LIBZ= ${ZLIB} ### find out what to use for libsa SA_AS= library SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes .include "${S}/lib/libsa/Makefile.inc" LIBSA= ${SALIB} .PHONY: vers.c vers.c: version ${HOST_SH} ${S}/conf/newvers_stand.sh -K \ ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version "sandpoint" ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \ ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${OBJCOPY} -S -O binary ${PROG} ${PROG}.bin ${TOOL_MKUBOOTIMAGE} -A powerpc -T kernel -C none -O linux \ -a 0x${RELOC} -n ${PROG} ${PROG}.bin ${PROG}.img .include @ 1.8.2.3 log @sync with head @ text @d8 3 a10 4 SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c memfs.c SRCS+= nif.c fxp.c tlp.c rge.c skg.c stg.c SRCS+= dsk.c pciide.c siisata.c SRCS+= printf.c vers.c @ 1.8.2.4 log @sync with head @ text @d11 1 a11 1 SRCS+= vers.c d15 1 a15 1 CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP -DLIBSA_PRINTF_WIDTH_SUPPORT @ 1.7 log @Included sys/arc/sandpoint/stand/altboot in the build process. Install altboot and altboot.bin in /usr/mdec and copy them also into the installation directory of the sandpoint release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2011/01/27 16:13:51 phx Exp $ d6 1 a6 1 FILES+= ${PROG}.bin d11 1 a11 1 CLEANFILES+= vers.c ${PROG} ${PROG}.bin d66 3 a68 1 ${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin @ 1.6 log @Some cleanup. No functional change. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2011/01/27 04:54:40 nisimura Exp $ d6 1 @ 1.5 log @remove an excess echo line accidentally creeped in. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2011/01/27 04:32:49 nisimura Exp $ d7 4 a10 3 SRCS= entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \ fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c CLEANFILES+= vers.c vers.o ${PROG} ${PROG}.bin d57 5 a62 3 ${HOST_SH} ${S}/conf/newvers_stand.sh -K \ ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version sandpoint ${CC} -c vers.c d64 1 a64 1 ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN} a67 5 cleandir distclean: .WAIT cleanlibdir cleanlibdir: -rm -rf lib @ 1.4 log @arrange vers.c generation to honour MKREPRO for global build control. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2011/01/26 13:36:49 nisimura Exp $ a56 1 echo ${OBJS} @ 1.3 log @one more twist to complete newvers_stand.sh transition. Include timestamp in banner. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2011/01/23 07:41:38 nisimura Exp $ d6 1 d18 2 a25 1 NOMAN= # defined a31 1 d57 3 a59 1 ${HOST_SH} ${S}/conf/newvers_stand.sh -KD ${.CURDIR}/version sandpoint @ 1.2 log @switch to use newvers_stand.sh as suggested by joerg@@ @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2011/01/23 01:05:30 nisimura Exp $ d56 1 a56 1 ${HOST_SH} ${S}/conf/newvers_stand.sh -K ${.CURDIR}/version "sandpoint" @ 1.1 log @change bootloader name to "altboot". bump version and add README. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2010/06/26 21:45:49 phx Exp $ d56 1 a56 1 ${HOST_SH} ${.CURDIR}/newvers.sh ${.CURDIR}/version @