From patchwork Sat May 18 19:25:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 244781 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 847DC2C0077 for ; Sun, 19 May 2013 05:25:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 20E2A31690; Sat, 18 May 2013 19:25:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LFpzkp6qrQ5x; Sat, 18 May 2013 19:25:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6200D31031; Sat, 18 May 2013 19:25:30 +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 7F0BB8F7A2 for ; Sat, 18 May 2013 19:25:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 28E4C8BA22 for ; Sat, 18 May 2013 19:25:23 +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 WZVraikSYLFX for ; Sat, 18 May 2013 19:25:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id 535218B9B9 for ; Sat, 18 May 2013 19:25:19 +0000 (UTC) Received: from asgard (host94.190-138-226.telecom.net.ar [190.138.226.94]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.7/8.14.7) with ESMTP id r4IJPC0g030456 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 18 May 2013 19:25:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1368905117; bh=fIEZY75z5s3rC4z6UcgKj9Lp5B0lX7saENZfiMgEwIc=; h=From:To:Cc:Subject:Date; b=JorYnDGu59L2KD0mnu2gJpMwBqCgUQyZDkK5LmvHRCjtvyQOq3enwY6LgViBLP6tA 1Qyb19xZv4aFd4uhyEkFqKgceJFKGbgSYRw91E/iycoFGo+nN1/hj1sGXxL38iAczk 8uxEabTAID1kzlMWs0AE4raB2NCDrrtHdovXTCx8= Received: by asgard (sSMTP sendmail emulation); Sat, 18 May 2013 16:25:11 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Sat, 18 May 2013 16:25:09 -0300 Message-Id: <1368905110-23303-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 X-Virus-Scanned: clamav-milter 0.97.7 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 1/2] mxs-bootlets: add support for custom patches 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 Signed-off-by: Gustavo Zacarias --- boot/mxs-bootlets/Config.in | 9 +++++++++ boot/mxs-bootlets/mxs-bootlets.mk | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/boot/mxs-bootlets/Config.in b/boot/mxs-bootlets/Config.in index 2222ff6..9dc2d37 100644 --- a/boot/mxs-bootlets/Config.in +++ b/boot/mxs-bootlets/Config.in @@ -37,6 +37,15 @@ config BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_VERSION endif +config BR2_TARGET_MXS_BOOTLETS_CUSTOM_PATCH_DIR + string "custom patch dir" + help + If your board requires custom patches, add the path to the + directory containing the patches here. The patches must be + named mxs-bootlets-.patch. + + Most users may leave this empty + choice prompt "Bootstream" help diff --git a/boot/mxs-bootlets/mxs-bootlets.mk b/boot/mxs-bootlets/mxs-bootlets.mk index f93ff81..6b18fcc 100644 --- a/boot/mxs-bootlets/mxs-bootlets.mk +++ b/boot/mxs-bootlets/mxs-bootlets.mk @@ -4,6 +4,14 @@ # ############################################################# +ifneq ($(call qstrip,$(BR2_TARGET_MXS_BOOTLETS_CUSTOM_PATCH_DIR)),) +define MXS_BOOTLETS_APPLY_CUSTOM_PATCHES + support/scripts/apply-patches.sh $(@D) $(BR2_TARGET_MXS_BOOTLETS_CUSTOM_PATCH_DIR) \ + mxs-bootlets-\*.patch +endef +MXS_BOOTLETS_POST_PATCH_HOOKS += MXS_BOOTLETS_APPLY_CUSTOM_PATCHES +endif + ifeq ($(BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL),y) MXS_BOOTLETS_TARBALL = $(call qstrip,$(BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL_URL)) MXS_BOOTLETS_SITE = $(patsubst %/,%,$(dir $(MXS_BOOTLETS_TARBALL)))