X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3d80c3754b3421428b47f89ce26f07adf10e7501..c95ec7a92d473eef9cc09bbd0289571486daa5c3:/openwrt/Makefile

diff --git a/openwrt/Makefile b/openwrt/Makefile
index 5434b0e7f..81ecc43f8 100644
--- a/openwrt/Makefile
+++ b/openwrt/Makefile
@@ -48,7 +48,7 @@ ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)
 # along with the packages to build for the target.
 #
 ##############################################################
-TARGETS:=linux-headers host-sed uclibc-configured binutils gcc uclibc-target-utils
+TARGETS:=host-sed linux-headers uclibc-configured binutils gcc uclibc-target-utils
 include toolchain/Makefile.in
 include toolchain/*/Makefile.in
 include package/Makefile.in
@@ -105,8 +105,10 @@ $(STAGING_DIR):
 	@ln -sf ../lib $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib
 
 $(TARGET_DIR):
-	zcat target/default/skel.tar.gz | tar -C $(BUILD_DIR) -xf -
+	@mkdir -p $(TARGET_DIR)
 	cp -a target/default/target_skeleton/* $(TARGET_DIR)/
+	mkdir $(TARGET_DIR)/{proc,dev,jffs,tmp,usr/sbin}
+	chmod 1777 $(TARGET_DIR)/tmp
 	-find $(TARGET_DIR) -type d -name CVS -exec rm -rf {} \; > /dev/null 2>&1
 
 source: $(TARGETS_SOURCE)