initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -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
@@ -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
@@ -0,0 +1,5 @@
# Locally calculated
sha256 e4a07df05c23e0eba100d4013367e7823e3b8bc72da7b79b031bd346616c6ae5 raspberrypi-usbboot-9324fd7034b9d3606aed8a27da74d6d57e066e7e.tar.gz
# License files
sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE
@@ -0,0 +1,22 @@
################################################################################
#
# raspberrypi-usbboot
#
################################################################################
RASPBERRYPI_USBBOOT_VERSION = 9324fd7034b9d3606aed8a27da74d6d57e066e7e
RASPBERRYPI_USBBOOT_SITE = $(call github,raspberrypi,usbboot,$(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))