Re: [PATCH] mk: fix examples build failure
From: Thomas Monjalon <hidden>
Date: 2016-02-08 15:08:05
Hi, 2015-12-24 20:38, steeven lee:
quoted hunk ↗ jump to hunk
--- a/mk/internal/rte.extvars.mk +++ b/mk/internal/rte.extvars.mk # RTE_SDK_BIN must point to .config, include/ and lib/. -RTE_SDK_BIN := $(RTE_SDK)/$(RTE_TARGET) +RTE_SDK_BIN := $(RTE_SDK)/build
RTE_TARGET is the right value here. To make it work with "build/" please use RTE_TARGET=build when building your example.
ifeq ($(wildcard $(RTE_SDK_BIN)/.config),) -$(error Cannot find .config in $(RTE_SDK)) +$(error Cannot find .config in $(RTE_SDK_BIN)) endif
Yes you're right, the error message looks wrong. Please, could you send a v2 patch for this fix?
quoted hunk ↗ jump to hunk
--- a/mk/rte.extsubdir.mk +++ b/mk/rte.extsubdir.mk@@ -46,7 +46,7 @@ $(DIRS-y): @echo "== $@" $(Q)$(MAKE) -C $(@) \ M=$(CURDIR)/$(@)/Makefile \ - O=$(BASE_OUTPUT)/$(CUR_SUBDIR)/$(@)/$(RTE_TARGET) \ + O=$(BASE_OUTPUT)/$(CUR_SUBDIR)/build \ BASE_OUTPUT=$(BASE_OUTPUT) \ CUR_SUBDIR=$(CUR_SUBDIR)/$(@) \ S=$(CURDIR)/$(@) \
I think this change is not needed. Probably your command is incorrect. Please paste them here. If the doc is incomplete, a patch would also be welcome. Thanks