1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/busybox/busybox.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
15 if [ $prefix_auto = 1 ]; then
20 . $base/package/*/uclibc/functions.in
22 hook_add premake 1 'auto_config 2'
23 hook_add inmake 5 '[ -f busybox ] || cp busybox_unstripped busybox'
26 if [ "$SDECFG_STATIC" = 1 ]; then
27 echo "X CONFIG_STATIC"
28 echo "X CONFIG_DISABLE_SHARED"
31 if [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 1 ]; then
32 echo "X CONFIG_INSTALL_APPLET_SYMLINKS"
34 echo "O CONFIG_INSTALL_APPLET_SYMLINKS"
35 echo "X CONFIG_INSTALL_APPLET_DONT"
38 echo "X CONFIG_PREFIX \"$root/$prefix\""
40 case "$SDECFG_ARCH" in
44 echo "O CONFIG_FEATURE_SH_IS_ASH"
47 echo "X CONFIG_FEATURE_SH_IS_HUSH"
50 echo "O CONFIG_TASKSET"
51 echo "O CONFIG_ETHER_WAKE"
57 # T2 default config file
58 default_config > $builddir/.config
59 var_append conffiles ' ' $builddir/.config
61 # Add custom/target configuration from $targetdir
62 if [ -e $targetdir/busybox.config ]; then
63 echo_status "Adding busybox config from target dir"
64 var_append conffiles ' ' $targetdir/busybox.config
67 hook_add preconf 3 "bb_preconf"
69 if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ]; then
70 prefix="${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
73 var_append flistroot ' ' "${prefix%%/*}"
74 var_append conffiles ' ' "$confdir/emergency.config"
79 atstage cross && var_append makeopt ' ' 'CROSS_COMPILE=${arch_target}-'
81 # save .config file for the future
82 hook_add postmake 9 'cp -v .config $root$docdir/busybox.config'
83 hook_add postdoc 3 'cp -v busybox.links $root$docdir'
85 # shared file transformation :-(
86 var_append INSTALL_WRAPPER_FILTER '|' \
87 "sed -e 's,bin/\(lpq\|lpr\)$,bin/\1_busybox,g'"