make sure directory exists before copying into
authorMirko Vogt <mirko@openwrt.org>
Sat, 19 Jun 2010 23:48:45 +0000 (23:48 +0000)
committerMirko Vogt <mirko@openwrt.org>
Sat, 19 Jun 2010 23:48:45 +0000 (23:48 +0000)
SVN-Revision: 21842

toolchain/kernel-headers/Makefile

index 104b44c1977a1a3b6ac5b42da55c21e8abf15aff..fba3cc8216acbd4667472d49458e02b30fb75210 100644 (file)
@@ -50,6 +50,7 @@ ifneq ($(LINUX_HAS_HEADERS_INSTALL),)
                INSTALL_HDR_PATH="$(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/" \
                headers_install
        if [ -d $(HOST_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm ]; then \
+               mkdir -p $(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH)
                $(CP) \
                        $(HOST_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm/. \
                        $(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \