From patchwork Wed May 11 09:36:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Cl=C3=A9ment_Tosi?= X-Patchwork-Id: 1629515 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=WW+COQGu; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KyqZ82D2Fz9sG0 for ; Wed, 11 May 2022 19:37:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2994B84128; Wed, 11 May 2022 11:37:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="WW+COQGu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C073483F36; Wed, 11 May 2022 11:36:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x44a.google.com (mail-wr1-x44a.google.com [IPv6:2a00:1450:4864:20::44a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6499B8425F for ; Wed, 11 May 2022 11:36:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=3uIN7YgUKBsc2615vt11tyr.p1z7-o116yv565.qr0A.qr@flex--ptosi.bounces.google.com Received: by mail-wr1-x44a.google.com with SMTP id s14-20020adfa28e000000b0020ac7532f08so613663wra.15 for ; Wed, 11 May 2022 02:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc :content-transfer-encoding; bh=hSnAZmNVqXzoKakaqVW0mPm3pxBburNNhPcFMWAolaU=; b=WW+COQGukk0aJFhG25rGW/aE51m3mVcAI7hCTrI06KiRmTbPY8X/mb2LS0AlI7LAQ0 uzwJZD3ecspiqL5OhBC2/epw2bIbMERu+FXBycYp36S1FPmOARR0YmnA57iDrc24dADT T9CEHcYpUYY74MJ5E2cr4Yp/NsVVbi8kJ7/Eqg3z55p5Frwve6rzCbFNA/Nv9fD55NAZ d50DfFxH2n3hcCNdzKPPZnQrLrh8lUFrrLWXTaaBAluXxPMfnvPoOwkAEq1w4KaB7aF2 4qFfWfGPO/DYLrpzszmbxTnZCePIxh+Mmqa1NqzY62Fc7IZEa7H42pYp3BYwd3BP7uuZ kMIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc :content-transfer-encoding; bh=hSnAZmNVqXzoKakaqVW0mPm3pxBburNNhPcFMWAolaU=; b=61Fw6l34xpDhnNDO25RTseMxqdjxMZi957+ETxSnBiOPlMCWF05qbO7RZbfP7E8C48 j/HaMwTX2YOCfhVwZ79bLvX7S9E6cgJpKP06XHijy96eVd9j+qwiQtR5FYKrmU+sg6E9 4lxFzsrp56ruvO3G5UBl8MF1tAjBMo07R7h/5FyDjFXR9INwBhsTgG7zyc4FV2gSQ8gy jybpK1zU3IczIyXDe8CVCi7W4b/7Xsg7hZNjtxY2SZC15CJsWLuH5QpcMKRoODa0ame4 7nMf3Kxwh1xWon+T770wevqXI0lPPOpOxVAvUzQbih7ptauwmY1cRJHjwFC3rEqCtEEZ 0oBA== X-Gm-Message-State: AOAM5303xOig2GONCKgej1R073jyDIz1g02+vt4AztKA5R5hAcL+rK9V MC/ioLdhrNvqxz1r9uJrm4OQBC8K4kZiB97JeLug2fzxO4bzoKHEanKRrhycQoXcikseiwmAlRW QG8LoTYvtX+BLGo3yKgEyj5po8WktxpsnwoijNWZQdGR3YkdAX+dwG01L X-Google-Smtp-Source: ABdhPJxa/2I8/nxyqqcY73IezoytkFszCmIwzqFdUq1e+WUlIIU34NxwokEM3K/oL2fNs+QU/oRSGdcEtw== X-Received: from ptosi1.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:afb]) (user=ptosi job=sendgmr) by 2002:a05:600c:2045:b0:394:2457:9c36 with SMTP id p5-20020a05600c204500b0039424579c36mr3795069wmg.76.1652261816767; Wed, 11 May 2022 02:36:56 -0700 (PDT) Date: Wed, 11 May 2022 10:36:07 +0100 Message-Id: <20220511093607.3955441-1-ptosi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.0.512.ge40c2bad7a-goog Subject: [PATCH] scripts: Introduce {quiet_,}cmd_bin2c From: " =?utf-8?q?Pierre-Cl=C3=A9ment_Tosi?= " To: u-boot@lists.denx.de Cc: " =?utf-8?q?Pierre-Cl=C3=A9ment_Tosi?= " , Simon Glass X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Add a make command to compile binary files as C data through bin2c with $(call,bin2c,) Note that this requires BUILD_BIN2C=y. Cc: Simon Glass Signed-off-by: Pierre-Clément Tosi --- scripts/Makefile.lib | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 3db2550085..c0a5bb9add 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -567,6 +567,11 @@ cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ # Additional commands for U-Boot # +# bin2c +# --------------------------------------------------------------------------- +quiet_cmd_bin2c = BIN2C $@ + cmd_bin2c = $(objtree)/scripts/bin2c $2 < $< > $@ + # mkimage # --------------------------------------------------------------------------- MKIMAGEOUTPUT ?= /dev/null