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