CVS commit: src/distrib/evbarm/gzboot/gzimg

2014-02-28 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Mar  1 01:52:13 UTC 2014

Modified Files:
src/distrib/evbarm/gzboot/gzimg: Makefile

Log Message:
TARGETS -> ARCH_TARGETS


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/distrib/evbarm/gzboot/gzimg/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/evbarm/gzboot/gzimg/Makefile
diff -u src/distrib/evbarm/gzboot/gzimg/Makefile:1.25 src/distrib/evbarm/gzboot/gzimg/Makefile:1.26
--- src/distrib/evbarm/gzboot/gzimg/Makefile:1.25	Mon Jan 27 08:18:07 2014
+++ src/distrib/evbarm/gzboot/gzimg/Makefile	Sat Mar  1 01:52:13 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2014/01/27 08:18:07 apb Exp $
+#	$NetBSD: Makefile,v 1.26 2014/03/01 01:52:13 matt Exp $
 
 .include 
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -6,19 +6,19 @@
 .include 
 
 #
-# `make' or `make all' builds all gzimg files defined in ${TARGETS}.
+# `make' or `make all' builds all gzimg files defined in ${ARCH_TARGETS}.
 # `make _KERNELNAME_' builds all gzimg files for specified kernels.
 #
 
 
 
-#	TARGETS is a list of:
+#	ARCH_TARGETS is a list of:
 #		KERNEL_name	GZBOOT_name	GZIMG_name
 #		RELOC_ADDR	WHICH_kernel
 #	
 .if ${MACHINE_ARCH} == "arm"
 # Little endian platforms.
-TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_sd0	\
+ARCH_TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_sd0	\
 		0x0014	netbsd-sd0			\
 \
 		ADI_BRH		ADI_BRH		ADI_BRH_wd0	\
@@ -53,19 +53,19 @@ TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_sd0	\
 \
 		SMDK2800	SMDK2800	SMDK2800	\
 		0x	netbsd
-.else
+.elif ${MACHINE_ARCH} == "armeb"
 # Big endian platforms.
-TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_sd0	\
+ARCH_TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_sd0	\
 		0x0014	netbsd-sd0			\
 \
 		ADI_BRH		ADI_BRH		ADI_BRH_wd0	\
 		0x0014	netbsd-wd0
 .endif
 
-# Default is to build for all TARGETS
+# Default is to build for all ARCH_TARGETS
 ALL_KERNELS?= +
 
-.for K G I R W in ${TARGETS}# {
+.for K G I R W in ${ARCH_TARGETS}			# {
 .for configsel in ${ALL_KERNELS}			# {
 .if ${configsel} == "+" || ${configsel} == ${K}
 



CVS commit: src/distrib/evbarm/gzboot/gzimg

2012-04-04 Thread Hiroyuki Bessho
Module Name:src
Committed By:   bsh
Date:   Wed Apr  4 07:32:29 UTC 2012

Modified Files:
src/distrib/evbarm/gzboot/gzimg: Makefile

Log Message:
add phony targets to build gzimg files for specified kernels, instead
of building all gzimg files in TARGETS.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/distrib/evbarm/gzboot/gzimg/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/evbarm/gzboot/gzimg/Makefile
diff -u src/distrib/evbarm/gzboot/gzimg/Makefile:1.21 src/distrib/evbarm/gzboot/gzimg/Makefile:1.22
--- src/distrib/evbarm/gzboot/gzimg/Makefile:1.21	Fri Apr  3 22:36:35 2009
+++ src/distrib/evbarm/gzboot/gzimg/Makefile	Wed Apr  4 07:32:29 2012
@@ -1,10 +1,16 @@
-#	$NetBSD: Makefile,v 1.21 2009/04/03 22:36:35 perry Exp $
+#	$NetBSD: Makefile,v 1.22 2012/04/04 07:32:29 bsh Exp $
 
 .include 
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
 
 .include 
 
+#
+# `make' or `make all' builds all gzimg files defined in ${TARGETS}.
+# `make _KERNELNAME_' builds all gzimg files for specified kernels.
+#
+
+
 
 #	TARGETS is a list of:
 #		KERNEL_name	GZBOOT_name	GZIMG_name
@@ -75,8 +81,17 @@ gzimg_${I}_flash_${R}.gz: .NOTMAIN gzimg
 CLEANFILES+=	gzimg_${I}_flash_${R}.kern gzimg_${I}_flash_${R}.kern.gz \
 		gzimg_${I}_flash_${R}
 
+.if empty(GZKERNELS:M${K})
+GZKERNELS+=	$K
+.endif
+KZ${K}+=	gzimg_${I}_flash_${R}.gz
+
 .endfor			# }
 
+.for K in ${GZKERNELS}
+${K}: .PHONY ${KZ${K}}
+.endfor
+
 CLEANFILES+=	${GZIMGS}