Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35553 )
Change subject: util/mainboard/google: Fix hatch variant script ......................................................................
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.
Change-Id: Ie6f4179014b79ea45d0fcf406ca192046438dbf7 Signed-off-by: Edward O'Callaghan quasisec@chromium.org --- M util/mainboard/google/hatch/create_coreboot_variant.sh 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/35553/1
diff --git a/util/mainboard/google/hatch/create_coreboot_variant.sh b/util/mainboard/google/hatch/create_coreboot_variant.sh index 32720ca..352db8d 100755 --- a/util/mainboard/google/hatch/create_coreboot_variant.sh +++ b/util/mainboard/google/hatch/create_coreboot_variant.sh @@ -53,7 +53,8 @@ git checkout -b "create_${variant}_${DATE}"
# Copy the template tree to the target -cp -r "${SRC}/template/*" "variants/${variant}/" +mkdir "variants/${variant}/" +cp -vr "${SRC}/template"/* "variants/${variant}/" git add "variants/${variant}/"
# Now add the new variant to Kconfig and Kconfig.name