Return to Makefile CVS log | Up to [local] / sys / arch / landisk / stand / xxboot |
File: [local] / sys / arch / landisk / stand / xxboot / Makefile (download)
Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:08:56 2008 UTC (16 years, 4 months ago) by nbrk
Import of OpenBSD 4.2 release kernel tree with initial code to support Jornada 720/728, StrongARM 1110-based handheld PC. At this point kernel roots on NFS and boots into vfs_mountroot() and traps. What is supported: - glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode (needs some palette tweaks for non black/white/blue colors, i think) - saic, SA11x0 interrupt controller (needs cleanup) - sacom, SA11x0 UART (supported only as boot console for now) - SA11x0 GPIO controller fully supported (but can't handle multiple interrupt handlers on one gpio pin) - sassp, SSP port on SA11x0 that attaches spibus - Jornada microcontroller (jmcu) to control kbd, battery, etc throught the SPI bus (wskbd attaches on jmcu, but not tested) - tod functions seem work - initial code for SA-1111 (chip companion) : this is TODO Next important steps, i think: - gpio and intc on sa1111 - pcmcia support for sa11x0 (and sa1111 help logic) - REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs) - root on wd0! (using already supported PCMCIA-ATA) |
# $OpenBSD: Makefile,v 1.3 2006/11/08 20:03:32 drahn Exp $ MAN= xxboot.8 .if ${MACHINE} == "landisk" PROG= xxboot LINKS= ${BINDIR}/xxboot ${BINDIR}/sdboot LINKS+= ${BINDIR}/xxboot ${BINDIR}/wdboot SRCS= pbr.S xxboot.S boot1.c LDFLAGS=-nostdlib -Ttext 0x8c201000 -N -x -Bstatic -e start INSTALL_STRIP= XXBOOT_SECTORS?= 15 XXBOOT_MAXSIZE?= (( ${XXBOOT_SECTORS} * 512 )) CPPFLAGS+=-D_STANDALONE CPPFLAGS+=-nostdinc -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../../.. CPPFLAGS+=-DLOADADDRESS=0x8ff00000 -DXXBOOT_SECTORS=${XXBOOT_SECTORS} CFLAGS+=-m4-nofpu OBJCOPY?=objcopy S= ${.CURDIR}/../../../.. SAREL= .include "${S}/lib/libsa/Makefile.inc" DPADD+= $(SALIB) LDADD+= $(SALIB) KERN_AS?= library .include "${S}/lib/libkern/Makefile.inc" DPADD+= $(KERNLIB) LDADD+= $(KERNLIB) LIBGCC!=${CC} -print-libgcc-file-name LDADD+= $(LIBGCC) ${PROG}: ${OBJS} ${DPADD} ${LD} -o ${PROG}.sym ${LDFLAGS} \ -Map ${PROG}.map -cref ${OBJS} ${LDADD} ${OBJCOPY} -O binary ${PROG}.sym ${PROG} @ sz=$$(ls -ln ${PROG} | tr -s ' ' | cut -d' ' -f5); \ if [ "$$sz" -gt "$$${XXBOOT_MAXSIZE}" ]; then \ echo "### ${PROG} size $$sz is larger than ${XXBOOT_MAXSIZE}" >&2 \ rm -f ${PROG}; \ ! :; \ else \ : pad to sector boundary; \ pad=$$(( 512 - ( $$sz & 511 ) )); \ [ $$pad = 512 ] || \ dd if=/dev/zero bs=1 count=$$pad >>${PROG} 2>/dev/null; \ echo "${PROG} size $$sz, $$((${XXBOOT_MAXSIZE} - $$sz)) free"; \ fi .else NOPROG= .endif .include <bsd.prog.mk>