From 45bcfa8b2eb1b0a84214a2bfc23f555ad8cf135e Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 25 Feb 2020 12:54:28 +0900 Subject: [PATCH] examples/elf: Add a few make rules To fix "don't know how to create tests/dirlist.h" make complaints. --- examples/elf/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/elf/Makefile b/examples/elf/Makefile index aa1f8ff48..2094a3bca 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -51,7 +51,13 @@ ROOTDEPPATH := --dep-path tests VPATH += :tests -tests/symtab.c: +ifeq ($(CONFIG_EXAMPLES_ELF_ROMFS),y) + FSIMG_HDR = $(TESTS_DIR)/romfs.h +else + FSIMG_HDR = $(TESTS_DIR)/cromfs.h +endif + +tests/symtab.c tests/dirlist.h $(FSIMG_HDR): @$(MAKE) -C tests TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV) clean::