lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5hod3u5r3d.wl%tiwai@suse.de>
Date:	Fri, 15 Aug 2008 15:45:58 +0200
From:	Takashi Iwai <tiwai@...e.de>
To:	Sam Ravnborg <sam@...nborg.org>
Cc:	Jeff Mahoney <jeffm@...e.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: [PATCH] kbuild: Fix creation of include2/asm symlink

The directory include2/asm can point wrongly to a non-existing
directory on architectures that have moved include/asm under arch/*.

This patch fixes it by checking firstly whether arch/*/include/asm is
available.

Signed-off-by: Takashi Iwai <tiwai@...e.de>
---
diff --git a/Makefile b/Makefile
index 53bf6ec..bcbb764 100644
--- a/Makefile
+++ b/Makefile
@@ -934,7 +934,11 @@ ifneq ($(KBUILD_SRC),)
 	fi;
 	$(Q)if [ ! -d include2 ]; then                                  \
 	    mkdir -p include2;                                          \
-	    ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm;     \
+	    if [ -d $(srctree)/arch/$(SRCARCH)/include/asm ]; then	\
+		ln -fsn $(srctree)/arch/$(SRCARCH)/include/asm include2/asm; \
+	    else							\
+		ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm;	\
+	    fi;								\
 	fi
 endif
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ