|
|
@ -0,0 +1,37 @@ |
|
|
|
# --- 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 |
|
|
|
var_remove_regex SYSGCC_WRAPPER_INSERT " " "-Os" |
|
|
|
|
|
|
|
hook_add premake 1 'toybox_config' |
|
|
|
toybox_config() { |
|
|
|
eval $MAKE defconfig CPUS=$CPUS |
|
|
|
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 |
|
|
|
|
|
|
|
eval $MAKE oldconfig CPUS=$CPUS |
|
|
|
} |
|
|
|
|
|
|
|
var_append makeinstopt ' ' "PREFIX=$root/" |