You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.5 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../toybox/toybox.conf
# Copyright (C) 2015 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
runconf=0
#Toybox author wants this.
echo_status "Using CPUS=$SDECFG_PARALLEL_MAX"
export CPUS=$SDECFG_PARALLEL_MAX
#Tools used to build toybox do not support -Os or -O2
var_remove_regex SYSGCC_WRAPPER_INSERT " " "-O.*"
hook_add premake 1 'toybox_config'
toybox_config() {
eval $MAKE defconfig
if pkginstalled time; then
sed -i -e "s,^CONFIG_TIME=y,CONFIG_TIME=n," .config
fi
if pkginstalled binutils; then
sed -i -e "s,^CONFIG_STRINGS=y,CONFIG_STRINGS=n," .config
fi
if pkginstalled patch; then
sed -i -e "s,^CONFIG_PATCH=y,CONFIG_PATCH=n," .config
fi
# always disable what e2fsprogs includes
sed -i -e "s,^CONFIG_CHATTR=y,CONFIG_CHATTR=n," .config
sed -i -e "s,^CONFIG_LSATTR=y,CONFIG_LSATTR=n," .config
eval $MAKE -j1 oldconfig
}
hook_add premake 5 'toybox_build'
toybox_build() {
export CC STRIP
export HOSTCC=$BUILD_CC
unset CROSS_COMPILE
eval $MAKE toybox V=1
}
makeopt=
var_append makeinstopt ' ' "CPUS=$CPUS PREFIX=$root/"