Add board config selector for FH8852v200

pull/177/head
Dmitry Ermakov 2022-02-13 21:36:39 +03:00
parent b6caaa5e08
commit 331ccad3d4
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
--- a/Makefile
+++ b/Makefile
@@ -612,11 +612,15 @@
KBUILD_MODULES := 1
endif
+PHONY += boardconfig
+boardconfig:
+ cp arch/arm/mach-fh/$(PROJECT_NAME)/board_config.$(PROJECT_NAME).appboard arch/arm/mach-fh/include/mach/board_config.h
+
# The all: target is the default when no target is given on the
# command line.
# This allow a user to issue only 'make' to build a kernel including modules
# Defaults to vmlinux, but the arch makefile usually adds further targets
-all: vmlinux
+all: boardconfig vmlinux
KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
KBUILD_AFLAGS += $(call cc-option,-fno-PIE)