diff options
author | sam <sam@FreeBSD.org> | 2006-03-11 18:59:16 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-03-11 18:59:16 +0000 |
commit | 2184e17621af737da392580a74af698687721101 (patch) | |
tree | 6631eaeae2819a4d63afc719210880a0fa802a68 /release/Makefile | |
parent | 1a65da68830e24175d6111cc80feee7922b00d28 (diff) | |
download | FreeBSD-src-2184e17621af737da392580a74af698687721101.zip FreeBSD-src-2184e17621af737da392580a74af698687721101.tar.gz |
fix handling of default kernels
Reviewed by: ru
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/release/Makefile b/release/Makefile index 6bd5eaa..e2aab6c 100644 --- a/release/Makefile +++ b/release/Makefile @@ -177,9 +177,10 @@ DISTRIBUTIONS?= ${BASE_DISTS} ${OTHER_DISTS} # Build and package both GENERIC and SMP kernels if the target # has both configuration files. Otherwise only GENERIC is done. # -KERNELS+= GENERIC .if exists(${.CURDIR}/../sys/${TARGET}/conf/SMP) -KERNELS+= SMP +KERNELS_BASE?= GENERIC SMP +.else +KERNELS_BASE?= GENERIC .endif # mountpoint for filesystems. @@ -482,6 +483,7 @@ release rerelease: FTP_PROXY \ HTTP_PROXY \ KERNELS \ + KERNELS_BASE \ KERNEL_FLAGS \ MAKE_FLOPPIES \ MAKE_ISOS \ @@ -588,8 +590,8 @@ release.1: -p ${RD}/trees/$$i/var > /dev/null ; \ done mkdir ${RD}/kernels - for i in ${KERNELS}; do \ - mkdir ${RD}/kernels/$${i}; \ + for i in ${KERNELS_BASE} ${KERNELS}; do \ + mkdir -p ${RD}/kernels/$${i}; \ done touch ${.TARGET} @@ -602,7 +604,7 @@ release.2: # Make and install the generic kernel(s). release.3: -.for kernel in ${KERNELS} +.for kernel in ${KERNELS_BASE} ${KERNELS} cd ${.CURDIR}/..; \ ${CROSSMAKE} ${KERNEL_FLAGS} \ KERNCONF=${kernel} kernel \ @@ -665,7 +667,7 @@ release.6: echo "$${i} distribution is finished."; \ fi ; \ done - @for i in ${KERNELS} ; \ + @for i in ${KERNELS_BASE} ${KERNELS} ; \ do \ if [ -d ${RD}/kernels/$${i} ] ; then \ cd ${.CURDIR} && $(MAKE) doTARBALL \ |