common: Move testdram() into init.h
[oweals/u-boot.git] / Makefile
index 3f332e68856d132db60c5b9fca8c62fa371fab82..9d7d8c269c80118d19d400b2d3c5fce5adf79f60 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -763,7 +763,9 @@ libs-y += cmd/
 libs-y += common/
 libs-y += env/
 libs-$(CONFIG_API) += api/
-libs-$(CONFIG_HAS_POST) += post/
+ifdef CONFIG_POST
+libs-y += post/
+endif
 libs-$(CONFIG_UNIT_TEST) += test/ test/dm/
 libs-$(CONFIG_UT_ENV) += test/env/
 libs-$(CONFIG_UT_OPTEE) += test/optee/