From 88f72235fe2978a9139f59af014328cc844d5dcf Mon Sep 17 00:00:00 2001
From: Thomas Chou <thomas@wytron.com.tw>
Date: Sun, 18 Nov 2007 18:53:48 +0800
Subject: [PATCH] nios2: save the "make romfs" step

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

Signed-off-by: Thomas Chou <thomas@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

