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,38 @@
From 93fbc53a727a49dd5061e44e3156ff2044e6e0b5 Mon Sep 17 00:00:00 2001
From: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Date: Tue, 1 Aug 2017 22:44:22 +0530
Subject: [PATCH] fix build with musl C library
With musl C library, we get following build error:
/home/buildroot/autobuild/run/instance-3/output/build/let-me-create-v1.5.2/src/core/spi.c: In function 'spi_transfer':
/home/buildroot/autobuild/run/instance-3/output/build/let-me-create-v1.5.2/src/core/spi.c:170:19: error: '_IOC_SIZEBITS' undeclared (first use in this function)
if (ioctl(fd, SPI_IOC_MESSAGE(1), &tr) < 0) {
^
/home/buildroot/autobuild/run/instance-3/output/build/let-me-create-v1.5.2/src/core/spi.c:170:19: note: each undeclared identifier is reported only once for each function it appears in
Include <linux/ioctl.h> for musl C library compatibility.
This build issue is detected by Buildroot autobuilder:
http://autobuild.buildroot.net/results/af9/af946fa6fe05ee265e4ac97742b15afeb0cea1ab/
Signed-off-by: Rahul Bedarkar rahulbedarkar89@gmail.com
---
Upstream status: https://github.com/CreatorDev/LetMeCreate/pull/29
src/core/spi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/core/spi.c b/src/core/spi.c
index 4d55cee..9ec7ea9 100644
--- a/src/core/spi.c
+++ b/src/core/spi.c
@@ -1,4 +1,5 @@
#include <sys/ioctl.h>
+#include <linux/ioctl.h>
#include <linux/spi/spidev.h>
#include <fcntl.h>
#include <errno.h>
--
2.7.4
+27
View File
@@ -0,0 +1,27 @@
comment "let-me-create needs a toolchain w/ C++, threads, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
|| BR2_STATIC_LIBS
config BR2_PACKAGE_LET_ME_CREATE
bool "let-me-create"
# build issues in static libs configuration
# see https://github.com/CreatorDev/LetMeCreate/issues/28
depends on !BR2_STATIC_LIBS
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
help
This library is collection of small wrappers for some
interfaces on the Creator Ci40 board. It aims at making
easier to develop on this platform. It also provides
wrappers for a few clicks.
https://github.com/CreatorDev/LetMeCreate
if BR2_PACKAGE_LET_ME_CREATE
config BR2_PACKAGE_LET_ME_CREATE_EXAMPLES
bool "Build and install examples"
help
Build and install examples
endif
+3
View File
@@ -0,0 +1,3 @@
# Locally computed
sha256 5f42858a2062f34d2578e9cb1aed3ccb8d2409d908aa4c41a924418666d5f2bd let-me-create-1.5.2.tar.gz
sha256 8ffc162e1435e810845b09a4c0d534df057a030f4c107778677b6621dc203426 LICENSE
+26
View File
@@ -0,0 +1,26 @@
################################################################################
#
# LetMeCreate
#
################################################################################
LET_ME_CREATE_VERSION = 1.5.2
LET_ME_CREATE_SITE = $(call github,CreatorDev,LetMeCreate,v$(LET_ME_CREATE_VERSION))
LET_ME_CREATE_INSTALL_STAGING = YES
LET_ME_CREATE_LICENSE = BSD-3-Clause
LET_ME_CREATE_LICENSE_FILES = LICENSE
# pure static build not supported
ifeq ($(BR2_SHARED_LIBS),y)
LET_ME_CREATE_CONF_OPTS += -DBUILD_STATIC=OFF -DBUILD_SHARED=ON
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
LET_ME_CREATE_CONF_OPTS += -DBUILD_STATIC=ON -DBUILD_SHARED=ON
endif
ifeq ($(BR2_PACKAGE_LET_ME_CREATE_EXAMPLES),y)
LET_ME_CREATE_CONF_OPTS += -DBUILD_EXAMPLES=ON
else
LET_ME_CREATE_CONF_OPTS += -DBUILD_EXAMPLES=OFF
endif
$(eval $(cmake-package))