Add some basic distrib infrastructure for NetBSD/evbarm. Right

now, this includes building flash'able gzip'd kernel images (and
the uncompressing loader) for the IQ80310 and IQ80321 eval boards.
This commit is contained in:
thorpej 2002-03-28 22:02:59 +00:00
parent 03b1503c21
commit ca897ac9e9
8 changed files with 163 additions and 0 deletions

7
distrib/evbarm/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:02:59 thorpej Exp $
.include <bsd.own.mk> # Use /etc/mk.conf
SUBDIR= gzboot
.include <bsd.subdir.mk>

View File

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:03:00 thorpej Exp $
# List the kernels you want to Gzip Boot here.
SUBDIR+= kern_IQ80310
SUBDIR+= kern_IQ80321
# List the Gzip Boot ELF images you want to create here.
SUBDIR+= gzboot_IQ80310_flash_0x00080000
SUBDIR+= gzboot_IQ80321_flash_0xf0080000
SUBDIR+= .WAIT
# List the Gzip Boot binary images (which include the kernels) you
# want to create here.
SUBDIR+= gzimg_IQ80310_flash_0x00080000
SUBDIR+= gzimg_IQ80321_flash_0xf0080000
.include <bsd.subdir.mk>

View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:03:01 thorpej Exp $
.include "../../../../Makefile.inc"
S= ${KERNSRCDIR}
PLATFORM= IQ80310
RELOC= 0x00080000
MAXIMAGESIZE= 1048576 # 1M
LOADADDR= 0xa0200000
CPPFLAGS+= -DCONSPEED=115200
CPPFLAGS+= -DCONADDR=0xfe810000UL
LDSCRIPT= ${S}/arch/evbarm/stand/gzboot/IQ80310_flash_0x80000/ldscript
SRCS+= ns16550.c i80312_mem.c
.include "${S}/arch/evbarm/stand/gzboot/Makefile.gzboot"

View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:03:02 thorpej Exp $
.include "../../../../Makefile.inc"
S= ${KERNSRCDIR}
PLATFORM= IQ80321
RELOC= 0xf0080000
MAXIMAGESIZE= 1048576 # 1M
LOADADDR= 0xa0200000
CPPFLAGS+= -DCONSPEED=115200
CPPFLAGS+= -DCONADDR=0xfe800000UL
LDSCRIPT= ${S}/arch/evbarm/stand/gzboot/IQ80321_flash_0xf0080000/ldscript
SRCS+= ns16550.c i80321_mem.c
.include "${S}/arch/evbarm/stand/gzboot/Makefile.gzboot"

View File

@ -0,0 +1,31 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:03:02 thorpej Exp $
.include "../../../../Makefile.inc"
.include <bsd.own.mk>
KIMGDIR!= cd ${.CURDIR}/../kern_IQ80310 && ${PRINTOBJDIR}
KIMG= ${KIMGDIR}/netbsd.bin.gz
GZBDIR!= cd ${.CURDIR}/../gzboot_IQ80310_flash_0x00080000 && \
${PRINTOBJDIR}
GZB= ${GZBDIR}/gzboot_IQ80310_0x00080000.sym
GZIMG= gzimg_IQ80310_flash_0x00080000
all:
cp ${GZB} gzboot.sym
${MDSETIMAGE} -v -s gzboot.sym ${KIMG}
${OBJCOPY} -O binary gzboot.sym ${GZIMG}
gzip -9f ${GZIMG}
release: check_RELEASEDIR
-mkdir -p ${RELEASEDIR}/binary/gzimg
cp -p ${GZIMG}.gz ${RELEASEDIR}/binary/gzimg/${GZIMG}.gz
clean cleandir distclean:
rm -f gzboot.sym ${GZIMG} ${GZIMG}.gz
# nothing to do here
depend includes lint regress tags:
.include <bsd.obj.mk>

View File

@ -0,0 +1,31 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:03:03 thorpej Exp $
.include "../../../../Makefile.inc"
.include <bsd.own.mk>
KIMGDIR!= cd ${.CURDIR}/../kern_IQ80321 && ${PRINTOBJDIR}
KIMG= ${KIMGDIR}/netbsd.bin.gz
GZBDIR!= cd ${.CURDIR}/../gzboot_IQ80321_flash_0xf0080000 && \
${PRINTOBJDIR}
GZB= ${GZBDIR}/gzboot_IQ80321_0xf0080000.sym
GZIMG= gzimg_IQ80321_flash_0xf0080000
all:
cp ${GZB} gzboot.sym
${MDSETIMAGE} -v -s gzboot.sym ${KIMG}
${OBJCOPY} -O binary gzboot.sym ${GZIMG}
gzip -9f ${GZIMG}
release: check_RELEASEDIR
-mkdir -p ${RELEASEDIR}/binary/gzimg
cp -p ${GZIMG}.gz ${RELEASEDIR}/binary/gzimg/${GZIMG}.gz
clean cleandir distclean:
rm -f gzboot.sym ${GZIMG} ${GZIMG}.gz
# nothing to do here
depend includes lint regress tags:
.include <bsd.obj.mk>

View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:03:03 thorpej Exp $
.include "../../../../Makefile.inc"
.include <bsd.own.mk>
KERNEL?= ${KERNOBJDIR}/IQ80310/netbsd.bin
all:
cp ${KERNEL} netbsd.bin
gzip -9f netbsd.bin
clean cleandir distclean:
rm -f netbsd.bin netbsd.bin.gz
# nothing to do here
depend includes lint regress tags:
.include <bsd.kernobj.mk>
.include <bsd.obj.mk>

View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2002/03/28 22:03:04 thorpej Exp $
.include "../../../../Makefile.inc"
.include <bsd.own.mk>
KERNEL?= ${KERNOBJDIR}/IQ80321/netbsd.bin
all:
cp ${KERNEL} netbsd.bin
gzip -9f netbsd.bin
clean cleandir distclean:
rm -f netbsd.bin netbsd.bin.gz
# nothing to do here
depend includes lint regress tags:
.include <bsd.kernobj.mk>
.include <bsd.obj.mk>