From patchwork Fri Feb 8 08:05:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafal Fabich X-Patchwork-Id: 219053 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 17D712C0080 for ; Fri, 8 Feb 2013 19:05:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A86608C7AF; Fri, 8 Feb 2013 08:05:42 +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 F+8WdqugAUjV; Fri, 8 Feb 2013 08:05:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6B85F8C8D4; Fri, 8 Feb 2013 08:05:38 +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 06C6D8F7A2 for ; Fri, 8 Feb 2013 08:05:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A6B008C837 for ; Fri, 8 Feb 2013 08:05:36 +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 3YOu-c5BPiZQ for ; Fri, 8 Feb 2013 08:05:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0FB348C7B0 for ; Fri, 8 Feb 2013 08:05:35 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id n8so2797208lbj.3 for ; Fri, 08 Feb 2013 00:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=Q+WCxsk4w5yWRiXGthJJSsi3hEkjT0Pzvc0gpLo30QE=; b=SBSUmq7yLz4qu0s6ulcMsYnE8NYIdSvKDavfcKijpjzuvPdBBB4XDkv438/xPHZa58 MfeNXrHMadoIVlxEBz11COszmXfoTgk4F8O8wEl1YMgHeHi/QdiDCTFEfh441qZILjL5 miwvDR3pYlXN7pp+G9E6sjnotgQ64i7rArjxAhJ+rm0G/vVYgsIEse5mF/AucPTKBnR7 u6qaQDFT3sXIo68V1/98cZh41ArFHPUvJfr5Jl2qCGCLPN4G+WU9u36EVq7KP26+TrPS MIBCBgNv8u4CPkYM+MvfwmyYE2yc7C75ndcWs40wItXJVOvPQBUw87w6Y2wQRZ3d1bV+ xXow== X-Received: by 10.152.105.103 with SMTP id gl7mr3962495lab.41.1360310734034; Fri, 08 Feb 2013 00:05:34 -0800 (PST) Received: from user-virtual-machine.espotel.espotel.fi (espotel-1.technologpark.net. [78.9.98.210]) by mx.google.com with ESMTPS id xw14sm744292lab.6.2013.02.08.00.05.31 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Feb 2013 00:05:33 -0800 (PST) From: Rafal Fabich To: buildroot@busybox.net Date: Fri, 8 Feb 2013 09:05:24 +0100 Message-Id: <1360310725-6463-1-git-send-email-rafal.fabich@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH 1/1] Added local directory as soure of kernel code 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 In 'menuconfig' user can choose a local directory as source of Linux kernel code. Useful during kernel drivers or modules development. Tested on three different development machines and different kernel sources. Signed-off-by: Rafal Fabich --- linux/Config.in | 14 ++++++++++++++ linux/linux.mk | 3 +++ 2 files changed, 17 insertions(+) diff --git a/linux/Config.in b/linux/Config.in index 3c50acc..d88d920 100644 --- a/linux/Config.in +++ b/linux/Config.in @@ -52,6 +52,11 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT This option allows Buildroot to get the Linux kernel source code from a Git repository. +config BR2_LINUX_KERNEL_CUSTOM_LOCAL + bool "Local directory" + help + This option allows Buildroot to get the Linux kernel source + code from a local directory. endchoice config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE @@ -74,6 +79,13 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION Git revision to use in the format used by git rev-parse, E.G. a sha id, a tag, branch, .. +config BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH + string "Path to the local directory" + depends on BR2_LINUX_KERNEL_CUSTOM_LOCAL + help + Path to the local directory with the Linux kernel source code. + + config BR2_LINUX_KERNEL_VERSION string default "3.7.6" if BR2_LINUX_KERNEL_3_7 @@ -81,6 +93,8 @@ config BR2_LINUX_KERNEL_VERSION default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL default $BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION if BR2_LINUX_KERNEL_CUSTOM_GIT + default "local" if BR2_LINUX_KERNEL_CUSTOM_LOCAL + # # Patch selection diff --git a/linux/linux.mk b/linux/linux.mk index 91a9f50..3f2d460 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -15,6 +15,9 @@ LINUX_SOURCE = $(notdir $(LINUX_TARBALL)) else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y) LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL)) LINUX_SITE_METHOD = git +else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_LOCAL),y) +LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH)) +LINUX_SITE_METHOD = local else LINUX_SOURCE = linux-$(LINUX_VERSION).tar.bz2 # In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order