From patchwork Sat Oct 20 23:45:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 192967 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 1B70D2C0090 for ; Sun, 21 Oct 2012 10:45:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 56F6FA0375; Sat, 20 Oct 2012 23:45:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BCO7eKA4NfLT; Sat, 20 Oct 2012 23:45:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 14314A0309; Sat, 20 Oct 2012 23:45:49 +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 AD8E88F783 for ; Sat, 20 Oct 2012 23:45:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5F59B8C0DF for ; Sat, 20 Oct 2012 23:45:46 +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 fIH3QyymOLTs for ; Sat, 20 Oct 2012 23:45:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from viper.mind.be (132.79-246-81.adsl-static.isp.belgacom.be [81.246.79.132]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4A8A88BB7E for ; Sat, 20 Oct 2012 23:45:41 +0000 (UTC) Received: from [172.16.2.6] (helo=vandecaa-laptop) by viper.mind.be with esmtp (Exim 4.69) (envelope-from ) id 1TPijZ-0000OC-69; Sun, 21 Oct 2012 01:45:38 +0200 Received: from arnout by vandecaa-laptop with local (Exim 4.80) (envelope-from ) id 1TPijY-000361-9R; Sun, 21 Oct 2012 01:45:36 +0200 From: "Arnout Vandecappelle (Essensium/Mind)" To: buildroot@busybox.net Date: Sun, 21 Oct 2012 01:45:24 +0200 Message-Id: <1350776731-8467-4-git-send-email-arnout@mind.be> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350776731-8467-1-git-send-email-arnout@mind.be> References: <1350776731-8467-1-git-send-email-arnout@mind.be> Subject: [Buildroot] [PATCH 03/10] ctng: add ctng-update-config target 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 From: "Arnout Vandecappelle (Essensium/Mind)" Analogous to linux-update-config and friends. Also update documentation. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- docs/manual/customize-store.txt | 8 ++++---- toolchain/toolchain-crosstool-ng/crosstool-ng.mk | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/manual/customize-store.txt b/docs/manual/customize-store.txt index bc1751e..c7ef00c 100644 --- a/docs/manual/customize-store.txt +++ b/docs/manual/customize-store.txt @@ -58,8 +58,8 @@ configuration files easier. path specified by +BR2_PACKAGE_BUSYBOX_CONFIG+. * +make uclibc-update-config+ saves the uClibc configuration to the path specified by +BR2_UCLIBC_CONFIG+. -* For crosstool-NG, no helper exists so you have to copy the config - file manually to +BR2_TOOLCHAIN_CTNG_CONFIG+. +* +make ctng-update-config+ saves the crosstool-NG configuration to the + patch specified by +BR2_TOOLCHAIN_CTNG_CONFIG+. Creating your own board support @@ -122,7 +122,7 @@ you can skip the steps that are not relevant for your use case. 1. Write the configuration files: * +make linux-update-defconfig+ * +make busybox-update-config+ - * +cp /build/build-toolchain/.config board///ctng.config+ + * +make ctng-update-config+ * +make uclibc-update-config+ * +cp /build/at91bootstrap3-*/.config board///at91bootstrap3.config+ 1. Create +board///fs-overlay+ and fill it @@ -163,7 +163,7 @@ the buildroot tree). 1. Write the configuration files: * +make linux-update-defconfig+ * +make busybox-update-config+ - * +cp /build/build-toolchain/.config /ctng.config+ + * +make ctng-update-config+ * +make uclibc-update-config+ * +cp /build/at91bootstrap3-*/.config /at91bootstrap3.config+ 1. Create +/fs-overlay+ and fill it diff --git a/toolchain/toolchain-crosstool-ng/crosstool-ng.mk b/toolchain/toolchain-crosstool-ng/crosstool-ng.mk index e46bb20..fb6da0f 100644 --- a/toolchain/toolchain-crosstool-ng/crosstool-ng.mk +++ b/toolchain/toolchain-crosstool-ng/crosstool-ng.mk @@ -397,3 +397,6 @@ ctng-menuconfig: $(CTNG_DIR)/.config $(call ctng-oldconfig,$<) $(call ctng-check-config-changed,$<,$<.timestamp) $(Q)rm -f $<.timestamp + +ctng-update-config: $(CTNG_DIR)/.config + cp -f $< $(CTNG_CONFIG_FILE)