summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-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