mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Fold the buildopts into the existing crunch.inc file.
Deprecate the "global" crunch.inc file and the CRUNCHFLAGS global build options. Tools not policy. Move these global settings out into each picobsd distribution.
This commit is contained in:
parent
d1d74c2886
commit
095aac1a86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68273
13
release/picobsd/bridge/crunch1/crunch.inc
Normal file
13
release/picobsd/bridge/crunch1/crunch.inc
Normal file
@ -0,0 +1,13 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Anything that you add to OPTS will be added to the build rules for each
|
||||
# program built.
|
||||
|
||||
OPTS= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
|
||||
# Per program options can be added also...
|
||||
# i.e.
|
||||
# ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
@ -2,7 +2,6 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
SRC?=/usr/src
|
||||
CRUNCHFLAGS+= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
all: crunch
|
||||
|
||||
@ -11,17 +10,11 @@ crunch:
|
||||
@( if [ -f crunch.inc ] ; then \
|
||||
crunchgen -h ./crunch.inc ./crunch1.conf ; \
|
||||
else \
|
||||
crunchgen -h ../../build/crunch.inc ./crunch1.conf ; \
|
||||
crunchgen ./crunch1.conf ; \
|
||||
fi )
|
||||
@perl -pi -e 's#${OBJ}#${PICO_OBJ}#g' crunch1.mk ;
|
||||
../../build/munge_crunchmk.pl crunch1.mk ;
|
||||
@( if [ -f buildopts.inc ] ; then \
|
||||
echo '.include "buildopts.inc"' > crunch1.mk.tmp ; \
|
||||
cat crunch1.mk >> crunch1.mk.tmp ; \
|
||||
mv crunch1.mk.tmp crunch1.mk ; \
|
||||
fi )
|
||||
@env MAKEOBJDIRPREFIX=${PICO_OBJ} ${MAKE} -f crunch1.mk $(CRUNCHFLAGS) all \
|
||||
"CFLAGS=${CFLAGS} ${CRUNCHFLAGS}" #2>&1 >/dev/null
|
||||
@env MAKEOBJDIRPREFIX=${PICO_OBJ} ${MAKE} -f crunch1.mk all
|
||||
strip --remove-section=.note --remove-section=.comment crunch1
|
||||
|
||||
|
||||
|
@ -1,7 +0,0 @@
|
||||
# header file for crunch1.mk
|
||||
RELEASE_CRUNCH=yes
|
||||
NOCRYPT=yes
|
||||
NOPAM=yes
|
||||
NOSECURE=yes
|
||||
NONETGRAPH=yes
|
||||
NOIPSEC=yes
|
@ -1,2 +1,13 @@
|
||||
# You can add make variables and targets for the crunch building process
|
||||
# in this file.
|
||||
# $FreeBSD$
|
||||
|
||||
# Anything that you add to OPTS will be added to the build rules for each
|
||||
# program built.
|
||||
# i.e:
|
||||
# OPTS= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
|
||||
# Per program options can be added also by defining prog_OPTS:
|
||||
# ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
||||
|
12
release/picobsd/dial/crunch1/crunch.inc
Normal file
12
release/picobsd/dial/crunch1/crunch.inc
Normal file
@ -0,0 +1,12 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Anything that you add to OPTS will be added to the build rules for each
|
||||
# program built.
|
||||
|
||||
OPTS= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
|
||||
# Per program options can be added also...
|
||||
#ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
12
release/picobsd/install/crunch1/crunch.inc
Normal file
12
release/picobsd/install/crunch1/crunch.inc
Normal file
@ -0,0 +1,12 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Anything that you add to OPTS will be added to the build rules for each
|
||||
# program built.
|
||||
|
||||
OPTS= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
|
||||
# Per program options can be added also...
|
||||
#ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
12
release/picobsd/isp/crunch1/crunch.inc
Normal file
12
release/picobsd/isp/crunch1/crunch.inc
Normal file
@ -0,0 +1,12 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Anything that you add to OPTS will be added to the build rules for each
|
||||
# program built.
|
||||
|
||||
OPTS= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
|
||||
# Per program options can be added also...
|
||||
#ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
OPTS= -DNOPAM
|
||||
ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
13
release/picobsd/net/crunch1/crunch.inc
Normal file
13
release/picobsd/net/crunch1/crunch.inc
Normal file
@ -0,0 +1,13 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Anything that you add to OPTS will be added to the build rules for each
|
||||
# program built.
|
||||
|
||||
OPTS= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
|
||||
# Per program options can be added also...
|
||||
|
||||
ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
12
release/picobsd/router/crunch1/crunch.inc
Normal file
12
release/picobsd/router/crunch1/crunch.inc
Normal file
@ -0,0 +1,12 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Anything that you add to OPTS will be added to the build rules for each
|
||||
# program built.
|
||||
|
||||
OPTS= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
||||
|
||||
|
||||
# Per program options can be added also...
|
||||
#ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH
|
||||
|
||||
#end
|
Loading…
Reference in New Issue
Block a user