1bc276775d
- add build_{menu,n,g,x}config targets for compile-testing Kconfig - fix and improve recursive dependency detection in Kconfig - fix parallel building of menuconfig/nconfig - fix syntax error in clang-version.sh - suppress distracting log from syncconfig - remove obsolete "rpm" target - remove VMLINUX_SYMBOL(_STR) macro entirely - fix microblaze build with CONFIG_DYNAMIC_FTRACE - move compiler test for dead code/data elimination to Kconfig - rename well-known LDFLAGS variable to KBUILD_LDFLAGS - misc fixes and cleanups -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJbgYhCAAoJED2LAQed4NsGErAP/jt7gt76+N0PZmADBZqyVR/H 4k286g3OiT7DIcdvwqE5BRvu+zNOamDujnnXw63/jwu2RjrkLX/JnhzTbC0IZleZ KeO4bU4ZH0WFa0Ny9pp0LAnzbXGMnQjDXygcUd5BFoEd5JSLKW2PISEEjRh6b5B7 swJRdgySFaMrUBRNf13FwH5EvX/D0xZQe/wFhFCOv6L4gJZFMmpGUIepgTjTUmxZ wcNN6xxXg+ulLHVcPdPQ9EYssNHN5xNys02+IdIrhhXuNHji/TFm4dGYuU+dDGeE Eu4O6Qs7pg0PFGrZ5gLxXDJEp75W+uaTNOqV+jcjq8MRxJuWxyy2biUeelKRT/KH 0iv4ZQJVOMOhl8fZgLtQaXHyQ++5uwd6kvPPf+XFdkogGAIXK0wKWLoALFEOXwb6 z1BBnFx09LrKPGt0ZlKX624OEczedv/UAFiSh3Ic2S3PFEpq4oHrEGhTnyKRobPv OEcF3RqKjmAdK7PLy4kVpTLhkutkWWhw6Giy9qXUkXYJWonJR7NTQ1mIan2LoGZC sGi+qKae/8xgO2Nerx59tZpkiHYTMfYeAo8frzWurOxm3YzEfaxNNGPl+IMW7VKz cNPzQZ5tMUy4i4PAhk/gIWibnUTPfjDbWsZSMtIbO0GFcao56EvllwD8/awuy7lO QkaAeZHFcF+qgU3muaYK =Vsb2 -----END PGP SIGNATURE----- Merge tag 'kbuild-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild Pull more Kbuild updates from Masahiro Yamada: - add build_{menu,n,g,x}config targets for compile-testing Kconfig - fix and improve recursive dependency detection in Kconfig - fix parallel building of menuconfig/nconfig - fix syntax error in clang-version.sh - suppress distracting log from syncconfig - remove obsolete "rpm" target - remove VMLINUX_SYMBOL(_STR) macro entirely - fix microblaze build with CONFIG_DYNAMIC_FTRACE - move compiler test for dead code/data elimination to Kconfig - rename well-known LDFLAGS variable to KBUILD_LDFLAGS - misc fixes and cleanups * tag 'kbuild-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: kbuild: rename LDFLAGS to KBUILD_LDFLAGS kbuild: pass LDFLAGS to recordmcount.pl kbuild: test dead code/data elimination support in Kconfig initramfs: move gen_initramfs_list.sh from scripts/ to usr/ vmlinux.lds.h: remove stale <linux/export.h> include export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR() Coccinelle: remove pci_alloc_consistent semantic to detect in zalloc-simple.cocci kbuild: make sorting initramfs contents independent of locale kbuild: remove "rpm" target, which is alias of "rpm-pkg" kbuild: Fix LOADLIBES rename in Documentation/kbuild/makefiles.txt kconfig: suppress "configuration written to .config" for syncconfig kconfig: fix "Can't open ..." in parallel build kbuild: Add a space after `!` to prevent parsing as file pattern scripts: modpost: check memory allocation results kconfig: improve the recursive dependency report kconfig: report recursive dependency involving 'imply' kconfig: error out when seeing recursive dependency kconfig: add build-only configurator targets scripts/dtc: consolidate include path options in Makefile
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
#
|
|
# arch/h8300/Makefile
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
# License. See the file "COPYING" in the main directory of this archive
|
|
# for more details.
|
|
#
|
|
# (C) Copyright 2002-2015 Yoshinori Sato <ysato@users.sourceforge.jp>
|
|
#
|
|
|
|
KBUILD_DEFCONFIG := edosk2674_defconfig
|
|
|
|
cflags-$(CONFIG_CPU_H8300H) := -mh
|
|
aflags-$(CONFIG_CPU_H8300H) := -mh -Wa,--mach=h8300h
|
|
ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf_linux
|
|
cflags-$(CONFIG_CPU_H8S) := -ms
|
|
aflags-$(CONFIG_CPU_H8S) := -ms -Wa,--mach=h8300s
|
|
ldflags-$(CONFIG_CPU_H8S) := -mh8300self_linux
|
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
|
KBUILD_CFLAGS += -mint32 -fno-builtin
|
|
KBUILD_CFLAGS += -D__linux__
|
|
KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
|
|
KBUILD_AFLAGS += $(aflags-y)
|
|
KBUILD_LDFLAGS += $(ldflags-y)
|
|
|
|
CHECKFLAGS += -msize-long
|
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
CROSS_COMPILE := h8300-unknown-linux-
|
|
endif
|
|
|
|
core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
|
|
ifneq '$(CONFIG_H8300_BUILTIN_DTB)' '""'
|
|
core-y += arch/h8300/boot/dts/
|
|
endif
|
|
|
|
libs-y += arch/$(ARCH)/lib/
|
|
|
|
boot := arch/h8300/boot
|
|
|
|
%.dtb %.dtb.S %.dtb.o: | scripts
|
|
$(Q)$(MAKE) $(build)=arch/h8300/boot/dts arch/h8300/boot/dts/$@
|
|
|
|
PHONY += dtbs
|
|
dtbs: scripts
|
|
$(Q)$(MAKE) $(build)=arch/h8300/boot/dts
|
|
|
|
archmrproper:
|
|
|
|
archclean:
|
|
$(Q)$(MAKE) $(clean)=$(boot)
|
|
|
|
vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
|
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
|
|
|
define archhelp
|
|
@echo 'vmlinux.bin - Create raw binary'
|
|
@echo 'vmlinux.srec - Create srec binary'
|
|
@echo 'zImage - Compressed kernel image'
|
|
endef
|