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.
66 lines
1.9 KiB
66 lines
1.9 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../busybox/busybox.conf |
|
# Copyright (C) 2006 - 2007 The OpenSDE Project |
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
# |
|
# 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 --- |
|
|
|
|
|
for x in $( match_source_file -p patch ); do |
|
var_append patchfiles ' ' $x |
|
done |
|
|
|
. $base/package/*/uclibc/conffiles-functions.in |
|
|
|
runconf=0 |
|
hook_add premake 1 'busybox_config' |
|
busybox_config() { |
|
local BB_arch=$( echo $arch | arch2uname ) |
|
|
|
eval $MAKE defconfig ARCH=$BB_arch |
|
conffiles_loop 2 ARCH=$BB_arch |
|
} |
|
|
|
# add basic config |
|
var_append conffiles ' ' "$confdir/busybox.config" |
|
|
|
[ "$SDECFG_STATIC" != 1 ] || var_append conffiles ' ' "$confdir/static.config" |
|
|
|
# add custom/target configuration from $targetdir |
|
if [ -e $targetdir/busybox.config ] ; then |
|
var_append conffiles ' ' $targetdir/busybox.config |
|
fi |
|
|
|
if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then |
|
prefix="${SDECFG_PKG_BUSYBOX_ET_DIR#/}" |
|
set_confopt |
|
|
|
var_append flistroot ' ' "${prefix%%/*}" |
|
var_append conffiles ' ' "$confdir/emergency.config" |
|
fi |
|
|
|
# FIXME: shouldn't emergency thing force the symlinks creation? (on config.in) |
|
|
|
if [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then |
|
makeinstopt='' |
|
hook_add postmake 5 'cp -v busybox $root/$bindir' |
|
else |
|
if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then |
|
var_append makeinstopt ' ' "PREFIX=${SDECFG_PKG_BUSYBOX_ET_DIR#/}" |
|
else |
|
var_append makeinstopt ' ' "PREFIX=$root" |
|
fi |
|
fi |
|
|
|
# save .config file for the future |
|
hook_add postinstall 9 'cp -v .config busybox.links $root/$docdir' |
|
|
|
|