From db1a616acf0ac510c22d0ac90b091c5d4f8c135c Mon Sep 17 00:00:00 2001 From: payton Date: Fri, 22 Sep 2023 14:27:46 +0800 Subject: [PATCH] =?UTF-8?q?1.uboot=E9=80=82=E9=85=8DS550?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BSP/u-boot/Makefile | 4 +++- BSP/u-boot/include/configs/nvt-na51089-evb.h | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 BSP/u-boot/Makefile diff --git a/BSP/u-boot/Makefile b/BSP/u-boot/Makefile old mode 100644 new mode 100755 index cc3637899..2610ac0bf --- a/BSP/u-boot/Makefile +++ b/BSP/u-boot/Makefile @@ -660,9 +660,11 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=date-time) include scripts/Makefile.extrawarn # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments +MODEL = $(shell echo $(NVT_PRJCFG_MODEL_CFG) | sed 's/.*\/configs\/Linux\/cfg_\([^\/]*\)\/ModelConfig.mk/\1/g') + KBUILD_CPPFLAGS += $(KCPPFLAGS) KBUILD_AFLAGS += $(KAFLAGS) -KBUILD_CFLAGS += $(KCFLAGS) +KBUILD_CFLAGS += $(KCFLAGS) -D_$(MODEL)_ # Use UBOOTINCLUDE when you must reference the include/ directory. # Needed to be compatible with the O= option diff --git a/BSP/u-boot/include/configs/nvt-na51089-evb.h b/BSP/u-boot/include/configs/nvt-na51089-evb.h index 8b7654332..b441137d5 100755 --- a/BSP/u-boot/include/configs/nvt-na51089-evb.h +++ b/BSP/u-boot/include/configs/nvt-na51089-evb.h @@ -81,7 +81,11 @@ #define PWM_LED_ERASE 50 #define PWM_LED_PROGRAM 5 #else +#if defined(_565_HUNTING_EVB_LINUX_4G_S530_) #define NVT_LED_PIN DSI_GPIO(9) +#elif defined(_565_HUNTING_EVB_LINUX_4G_S550_) +#define NVT_LED_PIN P_GPIO(10) +#endif #define NVT_LED_ERASE_DURATION 30 #define NVT_LED_PROGRAM_DURATION 10 #endif