Changes to bldpkg.conf:
-> Moved CC, CXX and CPU architecture-related variables near extractprompt -> Removed explanation describing how $PATH should be like if distcc or ccache is used -> Renamed ccachesympath to ccachesymdirpath -> Redefined pkgdest path as the older one affected placement of package installers if packages were built by section build files -> rqfiles array is now defined in bldpkg.conf
This commit is contained in:
parent
c2682f0c26
commit
c7954fdcc4
1 changed files with 35 additions and 41 deletions
76
bldpkg.conf
76
bldpkg.conf
|
@ -29,9 +29,24 @@ installprompt=0
|
|||
# to disable, 1 to enable. Ignored for SSB autobuilds.
|
||||
extractprompt=0
|
||||
|
||||
# Whether to use distcc for distributed compilations. 0 to disable, 1 to
|
||||
# enable.
|
||||
globaldistcc=0
|
||||
# Define your compilers here.
|
||||
CC="gcc"
|
||||
CXX="g++"
|
||||
|
||||
# Set CPU-specific compiler variables. Only aarch64 and x86_64 supported.
|
||||
# https://github.com/sakaki-/gentoo-on-rpi-64bit/blob/master/reference/compile_run_benchmarks.sh
|
||||
# https://www.raspberrypi.org/forums/viewtopic.php?t=11629
|
||||
# Set debug flag
|
||||
gccdebug="-g3"
|
||||
# For aarch64
|
||||
# aarch64-musl-linux is not recognised by most configure scripts and I haven't
|
||||
# seen any compile except for gmp going wrong with arm-musl-linux
|
||||
aarch64hostdist="--host=arm-musl-linux"
|
||||
aarch64builddist="--build=arm-musl-linux"
|
||||
aarch64cflags="-O2 -fPIC -pipe -march=armv8-a+crc -mtune=cortex-a53"
|
||||
# For x86_64
|
||||
x8664builddist="--build=x86_64-musl-linux"
|
||||
x8664cflags="-O2 -fPIC -pipe"
|
||||
|
||||
# Whether to use ccache for faster consecutive rebuilds. Set 0 to disable,
|
||||
# 1 to enable.
|
||||
|
@ -41,33 +56,25 @@ globalccache=0
|
|||
# 1 to enable
|
||||
globalsccache=0
|
||||
|
||||
# Typical $PATH layout when using ccache + distcc + gcc, assuming gcc is in
|
||||
# /bin, should be:
|
||||
# /opt/ccache/bin:/opt/distcc/bin:/bin:
|
||||
# ccache first, then distcc and then local gcc. Kindly ensure your $PATH is
|
||||
# set in a similar manner.
|
||||
#
|
||||
# HINT:
|
||||
# To create distcc/ccache symlinks, run this for distcc as an example:
|
||||
# $ mkdir -p /opt/distcc/bin
|
||||
# $ for f in cc c++ gcc g++ ; do ln -s /bin/distcc /opt/distcc/bin/$f ; done
|
||||
# Replace distcc with ccache for creating distcc symlinks
|
||||
|
||||
# Distcc binary location
|
||||
distccbinpath="/bin/distcc"
|
||||
# Distcc symlink paths created for cc/gcc/c++/g++
|
||||
distccsympath="/opt/distcc/bin"
|
||||
# Whether to use distcc for distributed compilations. 0 to disable, 1 to
|
||||
# enable.
|
||||
globaldistcc=0
|
||||
|
||||
# Ccache binary location
|
||||
ccachebinpath="/bin/ccache"
|
||||
# Ccache symlink paths created for cc/gcc/c++/g++
|
||||
ccachesympath="/opt/ccache/bin"
|
||||
ccachesymdirpath="/lib/ccache"
|
||||
|
||||
# Sccache binary location
|
||||
sccachebinpath="/bin/sccache"
|
||||
# Scache hardlink paths created for cc/gcc/c++/g++
|
||||
sccachepath="/opt/sccache/bin"
|
||||
|
||||
# Distcc binary location
|
||||
distccbinpath="/bin/distcc"
|
||||
# Distcc symlink paths created for cc/gcc/c++/g++
|
||||
distccsymdirpath="/lib/distcc"
|
||||
|
||||
# Define the distcc timeout period in seconds. This prevents distcc from
|
||||
# falling back to local compiler if a distributed job takes a long time to
|
||||
# complete. We set it to 30 minutes instead of 5 minutes which is default.
|
||||
|
@ -101,7 +108,7 @@ nontmpfsdir="$parenttmp/sml"
|
|||
# openssh-8.1-x86_64-1sml.tlz should be placed in. Again, should be outside
|
||||
# tmpfs dir. Also declared and defined in autobuild section file, so values
|
||||
# may differ. This is for manual builds.
|
||||
pkgdest="$parenttmp/sml/packages/"
|
||||
pkgdest=${pkgdest:-$parenttmp/sml/packages/}
|
||||
|
||||
# Whether you want to preserve the build directory which contains the extracted source,
|
||||
# for example /tmp/sml/openssh.src/openssh-8.1. usetmpfs variable, if set to 1, will
|
||||
|
@ -131,26 +138,6 @@ swapcheck=0
|
|||
# compiles in KiB
|
||||
swapsize=2048000
|
||||
|
||||
# Define your compilers here. They must be in $PATH *AFTER* ccache and
|
||||
# distcc directories
|
||||
CC="gcc"
|
||||
CXX="g++"
|
||||
|
||||
# Set CPU-specific compiler variables. Only aarch64 and x86_64 supported.
|
||||
# https://github.com/sakaki-/gentoo-on-rpi-64bit/blob/master/reference/compile_run_benchmarks.sh
|
||||
# https://www.raspberrypi.org/forums/viewtopic.php?t=11629
|
||||
# Set debug flag
|
||||
gccdebug="-g3"
|
||||
# For aarch64
|
||||
# aarch64-musl-linux is not recognised by most configure scripts and I haven't
|
||||
# seen any compile except for gmp going wrong with arm-musl-linux
|
||||
aarch64hostdist="--host=arm-musl-linux"
|
||||
aarch64builddist="--build=arm-musl-linux"
|
||||
aarch64cflags="-O2 -fPIC -pipe -march=armv8-a+crc -mtune=cortex-a53"
|
||||
# For x86_64
|
||||
x8664builddist="--build=x86_64-musl-linux"
|
||||
x8664cflags="-O2 -fPIC -pipe"
|
||||
|
||||
# Set path to configure cache file that contains predefined answers to several
|
||||
# tests autoconf scripts run. Credits: Sabotage Linux.
|
||||
configsite="/etc/config.cache"
|
||||
|
@ -182,6 +169,13 @@ protecteddirectories=( "/" "/bin" "/boot" "/dev" "/etc" "/home" "/include" \
|
|||
"/lib" "/libexec" "/local" "/man" "/media" "/mnt" "/opt" "/proc" \
|
||||
"/root" "/run" "/sbin" "/share" "/srv" "/sys" "/usr" "/var" )
|
||||
|
||||
# Find initial compile-related build files. If either of don't exist, abort.
|
||||
rqfiles=( installpkg upgradepkg sha512sum patch find findmnt patch tput bc tar \
|
||||
addr2line ar as c++ c++filt cc cpp elfedit g++ gcc gcc-ar gcc-nm gcc-ranlib gcov \
|
||||
gcov-tool getconf gprof iconv ld ld.bfd nm objcopy objdump ranlib readelf size \
|
||||
strings strip )
|
||||
|
||||
|
||||
# Whether to output application build status in HTML format. Set 1 to enable,
|
||||
# 0 to disable.
|
||||
htmloutput=0
|
||||
|
|
Loading…
Reference in a new issue