From 908dc3130cfaac0f7379e7158654798e01e12f92 Mon Sep 17 00:00:00 2001 From: Johan Gunnarsson Date: Sun, 1 Aug 2021 22:51:00 +0200 Subject: [PATCH] build-u_boot: Add U_BOOT_PATCHES_DIR option --- scripts/build-u_boot | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/build-u_boot b/scripts/build-u_boot index d732236..9a0160f 100755 --- a/scripts/build-u_boot +++ b/scripts/build-u_boot @@ -23,6 +23,11 @@ fi # Step into U-Boot directory cd u-boot +# Apply patches +if [ -d "${U_BOOT_PATCHES_DIR}" ]; then + git apply "${U_BOOT_PATCHES_DIR}"/*.patch || : +fi + # Setup ARCH case "${TUPLE}" in arm-*)