initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
From 5448ca9d92f7fa197060323a82a5f060ce7c31e7 Mon Sep 17 00:00:00 2001
|
||||
From: Pierre-Jean Texier <pjtexier@koncepto.io>
|
||||
Date: Wed, 22 May 2019 10:26:27 +0200
|
||||
Subject: [PATCH] src/CMakeLists.txt: do not force the build of a shared
|
||||
library
|
||||
|
||||
By definition, projects using CMake which can build either static or shared
|
||||
libraries use a BUILD_SHARED_LIBS flag to allow selecting between both.
|
||||
So, let CMake rely on the standard BUILD_SHARED_LIBS variable to decide
|
||||
whether a static or shared library should be built.
|
||||
|
||||
however, we can control the behaviour as follows:
|
||||
|
||||
$. cmake -DBUILD_SHARED_LIBS=OFF ...
|
||||
|
||||
$. cmake -DBUILS_SHARED_LIBS=ON ...
|
||||
|
||||
With Yocto/OE, just add the following option into the libubootenv recipe :
|
||||
|
||||
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON"
|
||||
|
||||
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
|
||||
[Upstream status: http://patchwork.ozlabs.org/patch/1103437/]
|
||||
---
|
||||
src/CMakeLists.txt | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 4b71bc5..0b515f4 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -12,18 +12,16 @@ SET(include_HEADERS
|
||||
|
||||
include(GNUInstallDirs) # for the CMAKE_INSTALL_LIBDIR variable
|
||||
|
||||
-add_library(ubootenv SHARED ${libubootenv_SOURCES} ${include_HEADERS})
|
||||
+add_library(ubootenv ${libubootenv_SOURCES} ${include_HEADERS})
|
||||
SET_TARGET_PROPERTIES(ubootenv PROPERTIES VERSION ${VERSION} SOVERSION ${SOVERSION})
|
||||
|
||||
-ADD_LIBRARY(ubootenv_static STATIC ${libubootenv_SOURCES} ${include_HEADERS})
|
||||
-SET_TARGET_PROPERTIES(ubootenv_static PROPERTIES OUTPUT_NAME ubootenv)
|
||||
add_executable(fw_printenv fw_printenv.c)
|
||||
add_executable(fw_setenv fw_setenv.c)
|
||||
target_link_libraries(ubootenv z)
|
||||
target_link_libraries(fw_printenv ubootenv)
|
||||
target_link_libraries(fw_setenv ubootenv)
|
||||
|
||||
-install (TARGETS ubootenv ubootenv_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
+install (TARGETS ubootenv DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install (FILES libuboot.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
install (TARGETS fw_printenv DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install (TARGETS fw_setenv DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_LIBUBOOTENV
|
||||
bool "libubootenv"
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
libubootenv is a library that provides a hardware independent
|
||||
way to access to U-Boot environment.
|
||||
|
||||
The package provides the fw_printenv / fw_setenv utilities,
|
||||
new tools build from the library and not from U-Boot.
|
||||
|
||||
https://github.com/sbabic/libubootenv/
|
||||
@@ -0,0 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 760fe53ca20ced93a09dea0f123eb429c820b565c103920afa738873e8cd16b7 libubootenv-7dbfffa4cc0e42ad3febb122a711fe9d1b20e9f7.tar.gz
|
||||
sha256 0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192 LICENSES/CC0-1.0.txt
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSES/LGPL-2.1-or-later.txt
|
||||
sha256 89807acf2309bd285f033404ee78581602f3cd9b819a16ac2f0e5f60ff4a473e LICENSES/MIT.txt
|
||||
@@ -0,0 +1,17 @@
|
||||
################################################################################
|
||||
#
|
||||
# libubootenv
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBUBOOTENV_VERSION = 7dbfffa4cc0e42ad3febb122a711fe9d1b20e9f7
|
||||
LIBUBOOTENV_SITE = $(call github,sbabic,libubootenv,$(LIBUBOOTENV_VERSION))
|
||||
LIBUBOOTENV_LICENSE = LGPL-2.1+, MIT, CC0-1.0
|
||||
LIBUBOOTENV_LICENSE_FILES = LICENSES/CC0-1.0.txt \
|
||||
LICENSES/LGPL-2.1-or-later.txt \
|
||||
LICENSES/MIT.txt
|
||||
|
||||
LIBUBOOTENV_INSTALL_STAGING = YES
|
||||
LIBUBOOTENV_DEPENDENCIES = zlib
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user