From patchwork Sun Sep 23 17:15:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 973743 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="K4gVzZWc"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42JDYN3R8Bz9sCD for ; Mon, 24 Sep 2018 03:17:44 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 29B47C21EC5; Sun, 23 Sep 2018 17:16:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id DC0C7C21E0F; Sun, 23 Sep 2018 17:15:36 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1FB63C21E9F; Sun, 23 Sep 2018 17:15:29 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id CCE6CC21E3A for ; Sun, 23 Sep 2018 17:15:25 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id z3-v6so5563954wrr.13 for ; Sun, 23 Sep 2018 10:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TZR3aAPxdCME5aZmC64ZnmSGwd7aUQjbbDxfxIc7vHk=; b=K4gVzZWcua2cGj4kl4CBy3iSwW8RzO2TWTW+2827C7vjmpQpbWw2F2JpIvUDO+zQ41 6KmCuGogxx77Th/uHqxnUoQdYd2p5Q9VdhSXuKXntIqO/r5zSQ/FpEfwpbXlJzSln3tu OXprP+43VD89mPO1YbyOEeePBw3KVyIOEEXPhIMPOoBK+eXZc0Q6yRMCLRcuTH6NSUJm ueuOGmexejHP7d8qblOrajkX8u/o/2XX5+rfqiGOGpcyZGvBhtOgA0qD3/KPOuCGHHEq xia67RqK331V/2QH/ntxWZYwJlw1XPAY9oBh0acFjWBTRsZZrciQpJw/ziMe3IzPgnbQ K6+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TZR3aAPxdCME5aZmC64ZnmSGwd7aUQjbbDxfxIc7vHk=; b=KZGP86pVenTcuNi/O15xE9we2f45+2NlvgLGYSH/8yjZ7+N2a5/r8sdHmc/KMjAnFw Fkdm+dP10FoUJxA/89rf+dduJSDxVUoW24C91FxwXsZMkCpXxaBzPqnCMw9E9gbnsoGp /Br48qWZhWq2gl4ooSoedEqcDYPphrN1zEc9M85OsCIT1GIjc61oEaMUUWL9ZZqemomj OVWLQt3nZN/7zOQhHW7ILS/baUg6X4QQH7262FYcC2veKun2kcRhvbKHkXr5dMOuqtFP XFrshpztZfuy+J0EkyK1n/ACfjm8uECW/h/2jUKJqFEYqGOrAIKddHB07EKn91nSkh60 p14g== X-Gm-Message-State: ABuFfogCs685EhaPBtAd8Fr9VzArrtzZAmPSvZfQGYKtOdkj70o342mD qMSapxsYb0SIpXOjLNbzILYVFdPi X-Google-Smtp-Source: ACcGV63loJELUtkvjZ3nyeAXoLtyUai0J2B3E4Jk/sGGUUptyaNNcw8+VpiaqJNpGWYFRmPr/NrssA== X-Received: by 2002:adf:9031:: with SMTP id h46-v6mr5506087wrh.248.1537722925293; Sun, 23 Sep 2018 10:15:25 -0700 (PDT) Received: from workstation.lan.schwierd.dedyn.io (p549C750E.dip0.t-ipconnect.de. [84.156.117.14]) by smtp.gmail.com with ESMTPSA id j191-v6sm12223679wmb.37.2018.09.23.10.15.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Sep 2018 10:15:23 -0700 (PDT) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Sun, 23 Sep 2018 19:15:16 +0200 Message-Id: <20180923171517.21363-3-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180923171517.21363-1-daniel.schwierzeck@gmail.com> References: <20180923171517.21363-1-daniel.schwierzeck@gmail.com> MIME-Version: 1.0 Cc: Tom Rini Subject: [U-Boot] [PATCH 2/3] Kbuild: standalone: do not ignore platform-specific OBJCOPYFLAGS X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Currently the OBJCOPYFLAGS are cleared when assigning "-O srec" or "-O binary" for standalone programs. All flags set by arch-specific Makefiles are lost. This is bad if an arch demands arch-specific flags for the objcopy step. Signed-off-by: Daniel Schwierzeck Reviewed-by: Tom Rini --- examples/standalone/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile index abe1bf1883..f01816f24f 100644 --- a/examples/standalone/Makefile +++ b/examples/standalone/Makefile @@ -62,11 +62,11 @@ quiet_cmd_link_elf = LD $@ $(ELF): $(obj)/%: $(obj)/%.o $(LIB) FORCE $(call if_changed,link_elf) -$(obj)/%.srec: OBJCOPYFLAGS := -O srec +$(obj)/%.srec: OBJCOPYFLAGS += -O srec $(obj)/%.srec: $(obj)/% FORCE $(call if_changed,objcopy) -$(obj)/%.bin: OBJCOPYFLAGS := -O binary +$(obj)/%.bin: OBJCOPYFLAGS += -O binary $(obj)/%.bin: $(obj)/% FORCE $(call if_changed,objcopy)