Makefile: Add Board Type Definition
authorxingyu.wu <xingyu.wu@starfivetech.com>
Thu, 21 Apr 2022 06:10:01 +0000 (14:10 +0800)
committerxingyu.wu <xingyu.wu@starfivetech.com>
Thu, 21 Apr 2022 06:10:09 +0000 (14:10 +0800)
Add some definition about 'HWBOARD_FPGA', 'HWBOARD_EVB'
or 'HWBOARD_VISIONFIVE' in kernel.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Makefile [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ed6e7ec..485a876
--- a/Makefile
+++ b/Makefile
@@ -545,6 +545,7 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \
 
 # ===========================================================================
 # Rules shared between *config targets and build targets
+CFLAGS_KERNEL  += -D$(HWBOARD_FLAG)
 
 # Basic helpers built in scripts/basic/
 PHONY += scripts_basic