From da33246bc53ec1bfa093b991e263a9629920bc37 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 24 Sep 2019 16:53:53 +1000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/35553 Tested-by: build bot (Jenkins) Reviewed-by: Andrew McRae Reviewed-by: Paul Fagerburg --- util/mainboard/google/hatch/create_coreboot_variant.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/mainboard') 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 -- cgit v1.2.3