From patchwork Sun Apr 28 14:49:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Corbin X-Patchwork-Id: 1092263 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.b="hhxmPqXz"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44sW2n2T7Sz9s7T for ; Mon, 29 Apr 2019 00:51:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8F995861B3; Sun, 28 Apr 2019 14:50:49 +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 42D3LJnzDNV6; Sun, 28 Apr 2019 14:50:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id AE00186038; Sun, 28 Apr 2019 14:50:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 021711BF3E9 for ; Sun, 28 Apr 2019 14:50:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E16F586038 for ; Sun, 28 Apr 2019 14:50:35 +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 pZh0jg5QYulJ for ; Sun, 28 Apr 2019 14:50:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 5BF6885FFD for ; Sun, 28 Apr 2019 14:50:31 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id y5so10787098wma.2 for ; Sun, 28 Apr 2019 07:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vYVv467zcUEe74jVAMra2UKnya7iTFQIESFXm6j010s=; b=hhxmPqXztIa0g2Hc6+2SuoT/Xai5sqe1UdjcabEUkuLs8DniN74+KXqRm9vX+hMr+1 9hc7App2j0pZie6o8Afl1B/L4oCfIMZY2pv8Z01lalVX7AQsvuM8J2+maNQhV1gH79Zg dinfxLM8H88cW/CVJthPXJv8t9bkFZ6XQdTieHtjQn6A7ZSHxZuuJNKsux2fgyplmhnv SRETvbA8FpAvEQOn/e4mEcts28QLYzuSFg+E5ejAqswP5D5Gh7qfAv0CL48dDyVVlOdY yxIDTzdvpm3ir0juT7L0b2wW7kxjGrkF1Zkiu2FSD2YgfjYcGwjkI6AfvdfWAPedt7wo k49Q== 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=vYVv467zcUEe74jVAMra2UKnya7iTFQIESFXm6j010s=; b=eOBbmCuIG0Zf9e2oOofkuBzkJRXHZgOLlQ2FIK4QY5mwtJMVuQPm9iJFETD6XlHx63 i4HQsnYwowZ/+4MwtiP+6KnFSpZY536vO7PqazVYyiWxXvJ66R2BOol751jQ0hkNA870 GbUNw4kd9MsVHw7qAPBztdznWuOIGJF/oQGSVT8UZo+MDrbAm9bl08PN/FGqELtmcrnl QCzzbxETgg1cbBpntAifFg4O24AzUxiQm3Zm68HvzIDL5FDjRgiQYSoUvXZsMPJNcYPb bE73wbpeqQt5uG6tIZw7cu8iX8r8QjO12fJ40KpynkyLmW0MDGnw7bLMR4KvXmbiM+fq hN0g== X-Gm-Message-State: APjAAAVr9R7Ikm2nzV5ucdDwrnxPH54K4AC8zdzikITfaRGwu9/Oz3mt ZvrRBvv+5Dhmb0fpsfIhNhrqBmZv8Iw9Dw== X-Google-Smtp-Source: APXvYqzTrIZfPSiUOI1AlfTIT2gNMzxHerTQ56R+L3EIipZIdAoTgKVzJNd+ym9uAkTNJ+ZnagdH3g== X-Received: by 2002:a1c:7a12:: with SMTP id v18mr3039055wmc.69.1556463029656; Sun, 28 Apr 2019 07:50:29 -0700 (PDT) Received: from godzilla.lym.embecosm-corp.com (cust64-dsl91-135-5.idnet.net. [91.135.5.64]) by smtp.gmail.com with ESMTPSA id u2sm26678185wru.36.2019.04.28.07.50.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 28 Apr 2019 07:50:29 -0700 (PDT) From: Mark Corbin To: buildroot@buildroot.org Date: Sun, 28 Apr 2019 15:49:37 +0100 Message-Id: <20190428144939.28964-2-mark.corbin@embecosm.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190428144939.28964-1-mark.corbin@embecosm.com> References: <20190428144939.28964-1-mark.corbin@embecosm.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/3] boot/riscv-pk: add generation of binary bbl file X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alistair Francis , Mark Corbin Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" In order to support the SiFive HiFive Unleashed board we need to generate a binary bootloader file ready for writing to an SD card. Signed-off-by: Mark Corbin --- Changes v1 -> v2: - moved generation of bbl binary file in riscv-pk.mk from INSTALL_CMDS to BUILD_CMDS (Arnout) --- boot/riscv-pk/riscv-pk.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/riscv-pk/riscv-pk.mk b/boot/riscv-pk/riscv-pk.mk index 0ab5879ee4..8386dfe168 100644 --- a/boot/riscv-pk/riscv-pk.mk +++ b/boot/riscv-pk/riscv-pk.mk @@ -23,10 +23,12 @@ endef define RISCV_PK_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build bbl + $(TARGET_OBJCOPY) -S -O binary $(@D)/build/bbl $(@D)/build/bbl.bin endef define RISCV_PK_INSTALL_IMAGES_CMDS $(INSTALL) -D -m 0755 $(@D)/build/bbl $(BINARIES_DIR)/bbl + $(INSTALL) -D -m 0755 $(@D)/build/bbl.bin $(BINARIES_DIR)/bbl.bin endef $(eval $(generic-package))