Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: add intermediate targets for Flex/Bison in scripts/Makefile.host

Flex and Bison are used only for host programs. Move their intermediate
target processing from scripts/Makefile.build to scripts/Makefile.host.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+21 -19
+16 -19
scripts/Makefile.build
··· 41 41 include $(kbuild-file) 42 42 include $(srctree)/scripts/Makefile.lib 43 43 44 - # Do not include hostprogs rules unless needed. 45 - # $(sort ...) is used here to remove duplicated words and excessive spaces. 46 - hostprogs := $(sort $(hostprogs)) 47 - ifneq ($(hostprogs),) 48 - include $(srctree)/scripts/Makefile.host 49 - endif 50 - 51 - # Do not include userprogs rules unless needed. 52 - # $(sort ...) is used here to remove duplicated words and excessive spaces. 53 - userprogs := $(sort $(userprogs)) 54 - ifneq ($(userprogs),) 55 - include $(srctree)/scripts/Makefile.userprogs 56 - endif 57 - 58 44 ifndef obj 59 45 $(warning kbuild: Makefile.build is included improperly) 60 46 endif ··· 438 452 # %.asn1.o <- %.asn1.[ch] <- %.asn1 439 453 # %.dtb.o <- %.dtb.S <- %.dtb <- %.dts 440 454 # %.dtbo.o <- %.dtbo.S <- %.dtbo <- %.dtso 441 - # %.lex.o <- %.lex.c <- %.l 442 - # %.tab.o <- %.tab.[ch] <- %.y 443 455 targets += $(call intermediate_targets, .asn1.o, .asn1.c .asn1.h) \ 444 456 $(call intermediate_targets, .dtb.o, .dtb.S .dtb) \ 445 - $(call intermediate_targets, .dtbo.o, .dtbo.S .dtbo) \ 446 - $(call intermediate_targets, .lex.o, .lex.c) \ 447 - $(call intermediate_targets, .tab.o, .tab.c .tab.h) 457 + $(call intermediate_targets, .dtbo.o, .dtbo.S .dtbo) 458 + 459 + # Include additional build rules when necessary 460 + # --------------------------------------------------------------------------- 461 + 462 + # $(sort ...) is used here to remove duplicated words and excessive spaces. 463 + hostprogs := $(sort $(hostprogs)) 464 + ifneq ($(hostprogs),) 465 + include $(srctree)/scripts/Makefile.host 466 + endif 467 + 468 + # $(sort ...) is used here to remove duplicated words and excessive spaces. 469 + userprogs := $(sort $(userprogs)) 470 + ifneq ($(userprogs),) 471 + include $(srctree)/scripts/Makefile.userprogs 472 + endif 448 473 449 474 # Build 450 475 # ---------------------------------------------------------------------------
+5
scripts/Makefile.host
··· 160 160 161 161 targets += $(host-csingle) $(host-cmulti) $(host-cobjs) \ 162 162 $(host-cxxmulti) $(host-cxxobjs) $(host-rust) 163 + 164 + # %.lex.o <- %.lex.c <- %.l 165 + # %.tab.o <- %.tab.[ch] <- %.y 166 + targets += $(call intermediate_targets, .lex.o, .lex.c) \ 167 + $(call intermediate_targets, .tab.o, .tab.c .tab.h)