One of the things I need to do every time I set up a new build directory
or update the source tree is copy the config file over from the git repo.
This patchs adds a --config=ARCH-FLAVOR option that copies it automatically.
If the config does not exist, it is not considered a fatal error.
Signed-off-by: Jeff Mahoney
---
scripts/sequence-patch.sh | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
--- a/scripts/sequence-patch.sh
+++ b/scripts/sequence-patch.sh
@@ -40,7 +40,7 @@ usage() {
cat < "$SP_BUILD_DIR/Module.supported"
fi
+if test -n "$CONFIG"; then
+ if test -e "config/$CONFIG_ARCH/$CONFIG_FLAVOR"; then
+ echo "[ Copying config/$CONFIG_ARCH/$CONFIG ]"
+ cp -a "config/$CONFIG_ARCH/$CONFIG_FLAVOR" "$SP_BUILD_DIR/.config"
+ else
+ echo "[ Config $CONFIG does not exist. ]"
+ fi
+fi
+
[ $# -gt 0 ] && exit $status
if ! $have_defconfig_files || test ! -e config.conf; then
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-kernel+help@opensuse.org