[uClinux-dev] [PATCH] nios2: save the "make romfs" step

Thomas Chou thomas at wytron.com.tw
Tue Nov 20 22:03:22 EST 2007


As suggested by David McCullough, make vendor_hwselect create the romfs dir.

Signed-off-by: Thomas Chou <thomas at wytron.com.tw>

diff --git a/vendors/Altera/nios2nommu/Makefile b/vendors/Altera/nios2nommu/Makefile
index 40064ce..cce4d76 100644
--- a/vendors/Altera/nios2nommu/Makefile
+++ b/vendors/Altera/nios2nommu/Makefile
@@ -15,6 +15,7 @@ clean:
 	for i in $$dirs; do [ ! -d $$i ] || make -C $$i clean; done
 
 vendor_hwselect:
+	[ -d $(ROMFSDIR)/$$i ] || mkdir -p $(ROMFSDIR)
 	$(MAKEARCH_KERNEL) -C $(ROOTDIR)/$(LINUXDIR) hwselect
 
 romfs:
-- 
1.5.3.3



More information about the uClinux-dev mailing list