[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From 38b730c00f45abf324caf687b5b00662ff4252c2 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Fri, 2 Dec 2016 23:09:44 +0100
Subject: [PATCH] Makefile: allow passing CFLAGS/LDFLAGS
This might be needed to pass some custom CFLAGS/LDFLAGS when building
rpiboot.
Submitted-upstream: https://github.com/raspberrypi/usbboot/pull/2
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Rebased on 9324fd7]
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 822e714..875e717 100755
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
rpiboot: main.c msd/bootcode.h msd/start.h msd/bootcode4.h msd/start4.h
- $(CC) -Wall -Wextra -g -o $@ $< -lusb-1.0
+ $(CC) -Wall -Wextra -g $(CFLAGS) -o $@ $< -lusb-1.0 $(LDFLAGS)
%.h: %.bin ./bin2c
./bin2c $< $@
--
2.31.1

View File

@ -0,0 +1,17 @@
config BR2_PACKAGE_HOST_RASPBERRYPI_USBBOOT
bool "host raspberrypi-usbboot"
depends on BR2_arm || BR2_aarch64
depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-libusb
help
This package builds and install the "rpiboot" tool for the
host machine. This tool allows to boot the Broadcom BCM
processor used in the RaspberryPi to boot over USB, and have
it expose a USB mass storage device in order to reflash the
built-in storage of the RaspberryPi (useful for the eMMC
built into the Compute module).
https://github.com/raspberrypi/usbboot
comment "host raspberrypi-usbboot needs a toolchain w/ host gcc >= 4.9"
depends on BR2_arm || BR2_aarch64
depends on !BR2_HOST_GCC_AT_LEAST_4_9

View File

@ -0,0 +1,5 @@
# Locally calculated
sha256 4565314b38e7c7505b7d32a3b51b49f79c7dd5767d45b86d38e5255ae7489a43 raspberrypi-usbboot-2021.07.01.tar.gz
# License files
sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE

View File

@ -0,0 +1,23 @@
################################################################################
#
# raspberrypi-usbboot
#
################################################################################
RASPBERRYPI_USBBOOT_VERSION = 2021.07.01
RASPBERRYPI_USBBOOT_SITE = \
$(call github,raspberrypi,usbboot,v$(RASPBERRYPI_USBBOOT_VERSION))
RASPBERRYPI_USBBOOT_LICENSE = Apache-2.0
RASPBERRYPI_USBBOOT_LICENSE_FILES = LICENSE
HOST_RASPBERRYPI_USBBOOT_DEPENDENCIES = host-libusb
define HOST_RASPBERRYPI_USBBOOT_BUILD_CMDS
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
endef
define HOST_RASPBERRYPI_USBBOOT_INSTALL_CMDS
$(INSTALL) -D -m 0755 $(@D)/rpiboot $(HOST_DIR)/bin/rpiboot
endef
$(eval $(host-generic-package))