mirror of
https://github.com/pygos/build.git
synced 2024-11-05 03:27:10 +01:00
ffacb26218
Instead of having a "depends" file with a list of packages, add a "DEPENDS" variable to the build script. Generate the rootfs dependencies from a config file stored in the cfg directory. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
25 lines
623 B
Text
Executable file
25 lines
623 B
Text
Executable file
# inherit package details from first stage GCC
|
|
source "$SCRIPTDIR/tcpkg/gcc1/build"
|
|
DEPENDS="gcc1 musl"
|
|
|
|
build() {
|
|
local INPUT="$1"
|
|
local OUTPUT="$2"
|
|
|
|
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
|
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
|
--with-sysroot="$TCDIR/$TARGET" \
|
|
--disable-nls --enable-languages=c,c++ \
|
|
--enable-c99 --enable-long-long \
|
|
--disable-libmudflap --disable-multilib \
|
|
--disable-libmpx --disable-libssp \
|
|
--disable-libsanitizer \
|
|
--with-arch="$GCC_CPU" $GCC_EXTRACFG \
|
|
--with-native-system-header-dir="/include"
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
make install
|
|
}
|