]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/Makefile
post: descend only when CONFIG_HAS_POST is defined
[karo-tx-uboot.git] / post / Makefile
index 143924482ff0c9da69ad6539aa72870b8136e163..20a463a3453a4450a343552da63f1470683635bf 100644 (file)
@@ -5,16 +5,14 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-$(CONFIG_HAS_POST) += post.o
+obj- += post.o
 obj-$(CONFIG_POST_STD_LIST)    += tests.o
 
-obj-$(CONFIG_HAS_POST) += drivers/
-ifeq ($(ARCH),powerpc)
-obj-$(CONFIG_HAS_POST) += lib_powerpc/
-endif
+obj-y += drivers/
+obj-$(CONFIG_PPC) += lib_powerpc/
 ifneq ($(filter mpc83xx mpc8xx ppc4xx,$(CPU)),)
-obj-$(CONFIG_HAS_POST) += cpu/$(CPU)/
+obj-y += cpu/$(CPU)/
 endif
 ifneq ($(filter lwmon lwmon5 netta pdm360ng,$(BOARD)),)
-obj-$(CONFIG_HAS_POST) += board/$(BOARD)/
+obj-y += board/$(BOARD)/
 endif