summaryrefslogtreecommitdiff
path: root/util/mainboard/google/hatch
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@chromium.org>2019-09-24 16:53:53 +1000
committerPatrick Georgi <pgeorgi@google.com>2019-09-25 13:31:03 +0000
commitda33246bc53ec1bfa093b991e263a9629920bc37 (patch)
tree94630cdfb19f17c39d87d2961018f11b2b2525bc /util/mainboard/google/hatch
parent4721e47064288c8663caecb5c3c7c176cf8238c0 (diff)
downloadcoreboot-da33246bc53ec1bfa093b991e263a9629920bc37.tar.xz
util/mainboard/google: Fix hatch variant script
The script had a couple of bugs: * It didn't create the required directory under variants/ * It was treating the wildcard as literal and so couldn't find variant files to copy. V.2: Drop verbose cp && fixup wild card usage. Change-Id: Ie6f4179014b79ea45d0fcf406ca192046438dbf7 Signed-off-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35553 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Andrew McRae <amcrae@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'util/mainboard/google/hatch')
-rwxr-xr-xutil/mainboard/google/hatch/create_coreboot_variant.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/mainboard/google/hatch/create_coreboot_variant.sh b/util/mainboard/google/hatch/create_coreboot_variant.sh
index 32720ca54e..d4256a6ccc 100755
--- a/util/mainboard/google/hatch/create_coreboot_variant.sh
+++ b/util/mainboard/google/hatch/create_coreboot_variant.sh
@@ -53,7 +53,8 @@ DATE=$(date +%Y%m%d)
git checkout -b "create_${variant}_${DATE}"
# Copy the template tree to the target
-cp -r "${SRC}/template/*" "variants/${variant}/"
+mkdir -p "variants/${variant}/"
+cp -pr "${SRC}/template/." "variants/${variant}/"
git add "variants/${variant}/"
# Now add the new variant to Kconfig and Kconfig.name