From patchwork Sun Apr 14 13:43:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Corbin X-Patchwork-Id: 1085317 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.136; helo=silver.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="YrKZyX6R"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44htDn5zlwz9s70 for ; Sun, 14 Apr 2019 23:45:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 997591FCA0; Sun, 14 Apr 2019 13:45:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p6I44a0s-VXZ; Sun, 14 Apr 2019 13:45:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 47E65226CA; Sun, 14 Apr 2019 13:45:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3EE4F1BF41E for ; Sun, 14 Apr 2019 13:45:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3923A85876 for ; Sun, 14 Apr 2019 13:45:21 +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 qwWNRJLCh5rO for ; Sun, 14 Apr 2019 13:45:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8CCC7852F6 for ; Sun, 14 Apr 2019 13:45:20 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id q16so17099622wmj.3 for ; Sun, 14 Apr 2019 06:45:20 -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:mime-version :content-transfer-encoding; bh=B5Kjmu6nWykYEODYETo+1cVTF5MJIocuaMLjdUnvxas=; b=YrKZyX6Rbq0sqx27jiN2KfSHZp2kpKhUQlone1rh3z53RuJqXbJP22aAzHyFQshRij 3wZu3Cgoi5IqPo7MtUUrWF4wef77seK/vqs28S/kEmsyJrWEjV/aY8fAgFHI8nyBMDA3 iOq1oLhu1dfjTaiG1mxFCGSSSvklIUeXNqZOkkjuIPbjI7xV9zoccDN/a2UnxHK0TxuL s8UMEGVle109Xd5YyB/FqnF3lItpfap3t70o7b+SNT52xOHnWKC7GgJbeU3wbRAeRE6T xBIBsvAp+uKTRQD2SClde1hj7sVf6lMaMtIazZ6rJx4kVIgeMWyoL5MN+50KAessCvM3 e77A== 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:mime-version :content-transfer-encoding; bh=B5Kjmu6nWykYEODYETo+1cVTF5MJIocuaMLjdUnvxas=; b=CMT1bTjp4jjSQJMQTsede3ePnR71pl3qQI21XJJEX7kg8tYroVaIJaJrkVMHEnCqaR jr2VPcZO3nh45KHl2UxDsupjYeikGi7s6JTbdHy7H2IznOhHKhWJqz/P5wsx/L/BlMG+ fsxYwe2TgyHCnlgEuDIzQ8qEr/kPVF9SgGVtR1L4prPqQiXfnpuDvh7L9zW/HRsLCOfN 6polywYrDNWVDq1UKVAU3nt5TawquF20gBmHaOA2YvSraruwPYOcc0oxk8ysGOUcmnjj A5CBt57J0+gtiBq54TPP9rdM0Iti6LMsw2Y6jwN2lfpd4jb2Ka6MexKGki59WVREvisw dCEQ== X-Gm-Message-State: APjAAAVRtungbb/nVidvDaiosShuupRPEBItnqGtCcZZX/YersYHwLys vN1Sts/BeD5Y4rJw2Q3IXb4q8TBPAjTNeQ== X-Google-Smtp-Source: APXvYqwRq8TYEEahGEgBIULSgwhS8YsJ6+7p9ByE1qEV5RATxr0gBv54Yyh/qniSgOfe9T+FFK3Odg== X-Received: by 2002:a1c:2d0e:: with SMTP id t14mr17459267wmt.33.1555249518790; Sun, 14 Apr 2019 06:45:18 -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 p6sm38481148wrs.6.2019.04.14.06.45.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Apr 2019 06:45:17 -0700 (PDT) From: Mark Corbin To: buildroot@buildroot.org Date: Sun, 14 Apr 2019 14:43:06 +0100 Message-Id: <20190414134307.24754-1-mark.corbin@embecosm.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] 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: 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 --- 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..f32d96ed3a 100644 --- a/boot/riscv-pk/riscv-pk.mk +++ b/boot/riscv-pk/riscv-pk.mk @@ -26,7 +26,9 @@ define RISCV_PK_BUILD_CMDS endef define RISCV_PK_INSTALL_IMAGES_CMDS + $(TARGET_OBJCOPY) -S -O binary $(@D)/build/bbl $(@D)/build/bbl.bin $(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))