From patchwork Wed Mar 21 01:19:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Kaindl X-Patchwork-Id: 147891 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 03FA1B6F73 for ; Wed, 21 Mar 2012 12:19:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9FC9BA033E; Wed, 21 Mar 2012 01:19:01 +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 1dWXfy52MpO6; Wed, 21 Mar 2012 01:18:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1E284A027B; Wed, 21 Mar 2012 01:18:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id EA6CC8F75B for ; Wed, 21 Mar 2012 01:18:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DE540100838 for ; Wed, 21 Mar 2012 01:18:56 +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 bruFo2KJZOy8 for ; Wed, 21 Mar 2012 01:18:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.stusta.mhn.de (mail.stusta.mhn.de [141.84.69.5]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 01BEB100835 for ; Wed, 21 Mar 2012 01:18:54 +0000 (UTC) Received: from MK-StuSta-Gentoo.stusta.markus-kaindl.com (r048178.stusta.swh.mhn.de [10.150.48.178]) by mail.stusta.mhn.de (Postfix) with ESMTP id 6589F1954E; Wed, 21 Mar 2012 02:18:51 +0100 (CET) From: Markus Kaindl To: buildroot@uclibc.org Date: Wed, 21 Mar 2012 02:19:04 +0100 Message-Id: <1332292744-11797-1-git-send-email-markus.kaindl@stusta.mhn.de> X-Mailer: git-send-email 1.7.3.4 Subject: [Buildroot] [PATCH] linux.mk: .ub-File copying after building initramfs 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 test should exit with Exit-Code 0 if no .ub-File present and copy the file if Exit-Code 1, otherwise make fails Signed-off-by: Markus Kaindl --- linux/linux.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/linux.mk b/linux/linux.mk index 2a29de8..2fb890e 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -230,7 +230,7 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LI # Copy the kernel image to its final destination cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR) # If there is a .ub file copy it to the final destination - test -f $(LINUX_IMAGE_PATH).ub && cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR) + test ! -f $(LINUX_IMAGE_PATH).ub || cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR) $(Q)touch $@ # The initramfs building code must make sure this target gets called