From patchwork Thu Nov 1 00:17:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagaert Johan X-Patchwork-Id: 196062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3DDE52C009F for ; Thu, 1 Nov 2012 11:18:28 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BC62710B97C; Thu, 1 Nov 2012 00:18:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lG7NI6WcgN0c; Thu, 1 Nov 2012 00:18:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 630C31016A5; Thu, 1 Nov 2012 00:18:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 69B738F74A for ; Thu, 1 Nov 2012 00:18:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B1BA98CABC for ; Thu, 1 Nov 2012 00:18:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hO84h6jGjSVW for ; Thu, 1 Nov 2012 00:18:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailrelay020.isp.belgacom.be (Mailrelay020.isp.belgacom.be [195.238.6.95]) by whitealder.osuosl.org (Postfix) with ESMTP id 71DAB8C8EE for ; Thu, 1 Nov 2012 00:18:18 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwEAGO/kVBR8dr0/2dsb2JhbABEw1+BCYJ7I09LN4gKu0SPD4MkA5V2gRqPKIJw Received: from 244.218-241-81.adsl-dyn.isp.belgacom.be (HELO debian605.apex) ([81.241.218.244]) by relay.skynet.be with ESMTP; 01 Nov 2012 01:18:15 +0100 From: Sagaert Johan To: buildroot@busybox.net Date: Thu, 1 Nov 2012 01:17:45 +0100 Message-Id: <1351729065-31324-1-git-send-email-sagaert.johan@skynet.be> X-Mailer: git-send-email 1.8.0 Cc: Sagaert Johan Subject: [Buildroot] [PATCH 1/1] Create a symbolic link to the target kernel directory. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This symbolic link makes it easier when building kernel modules. The makefile for a module no longer has to point to the full directory name of the kernel but can use this symbolic link instead. You no longer need to edit the path to the kernel tree in the module's makefiles when changing your target kernel version. Signed-off-by: Sagaert Johan --- Makefile | 1 + linux/linux.mk | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 0128839..8356aeb 100644 --- a/Makefile +++ b/Makefile @@ -668,6 +668,7 @@ ifeq ($(O),output) rm -rf $(O) endif rm -rf $(CONFIG_DIR)/.config $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/.auto.deps + rm -f targetkernel cross: $(BASE_TARGETS) diff --git a/linux/linux.mk b/linux/linux.mk index c4bdf90..4541081 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -219,6 +219,8 @@ define LINUX_BUILD_CMDS fi $(LINUX_BUILD_DTB) $(LINUX_APPEND_DTB) + rm -f targetkernel + ln -s $(LINUX_DIR) targetkernel endef