Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From ed6025645f506c8941ab245f142db701b9f9bf2a Mon Sep 17 00:00:00 2001
|
||||
From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
|
||||
Date: Wed, 6 May 2026 18:12:24 +0200
|
||||
Subject: [PATCH] CMakeLists.txt: uses regex to remove potential rcX in
|
||||
LIBFTDI_VERSION_MINOR
|
||||
|
||||
LIBFTDI_VERSION_XXX is used by FTDI_VERSION to adapts code according
|
||||
to libftdi version. But when rcX is present in LIBFTDI_VERSION_MINOR
|
||||
cmake fails with the math function.
|
||||
This PR adds a REGEX to only keep numeric value and drop rcX
|
||||
|
||||
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
|
||||
Upstream: https://github.com/trabucayre/openFPGALoader/commit/ed6025645f506c8941ab245f142db701b9f9bf2a
|
||||
---
|
||||
CMakeLists.txt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 442327f..2bf20e1 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -200,6 +200,7 @@ if (USE_PKGCONFIG)
|
||||
string(REPLACE "." ";" VERSION_LIST ${LIBFTDI_VERSION})
|
||||
list(GET VERSION_LIST 0 LIBFTDI_VERSION_MAJOR)
|
||||
list(GET VERSION_LIST 1 LIBFTDI_VERSION_MINOR)
|
||||
+ string(REGEX REPLACE "[^0-9].*" "" LIBFTDI_VERSION_MINOR "${LIBFTDI_VERSION_MINOR}")
|
||||
endif()
|
||||
else()
|
||||
set(LIBFTDI_LIBRARY_DIRS "")
|
||||
--
|
||||
2.53.0
|
||||
|
||||
42
package/openfpgaloader/Config.in
Normal file
42
package/openfpgaloader/Config.in
Normal file
@@ -0,0 +1,42 @@
|
||||
config BR2_PACKAGE_OPENFPGALOADER
|
||||
bool "openfpgaloader"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi1
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libftdi1 -> libusb
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_LIBFTDI1
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Universal utility for programming FPGA
|
||||
|
||||
https://github.com/trabucayre/openFPGALoader/
|
||||
|
||||
if BR2_PACKAGE_OPENFPGALOADER
|
||||
|
||||
config BR2_PACKAGE_OPENFPGALOADER_CMSIS
|
||||
bool "CMSIS-DAP support"
|
||||
depends on BR2_PACKAGE_HAS_UDEV # hidapi
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hidapi -> libusb
|
||||
select BR2_PACKAGE_HIDAPI
|
||||
help
|
||||
openfpgaloader CMSIS-DAP support
|
||||
|
||||
comment "openfpgaloader CMSIS-DAP needs udev /dev management and a toolchain w/ NPTL threads"
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
|
||||
config BR2_PACKAGE_OPENFPGALOADER_LIBGPIOD
|
||||
bool "libgpiod support"
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8 # libgpiod
|
||||
select BR2_PACKAGE_LIBGPIOD
|
||||
help
|
||||
openfpgaloader libgpiod support
|
||||
|
||||
comment "openfpgaloader libgpiod needs kernel headers >= 4.8"
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
|
||||
|
||||
endif
|
||||
|
||||
comment "openfpgaloader needs a toolchain w/ threads, C++, gcc >= 4.9"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
3
package/openfpgaloader/openfpgaloader.hash
Normal file
3
package/openfpgaloader/openfpgaloader.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 ca965f933c52a2a9dbb318df4d4de70fac5f095a8e64523f81036ab467a4b567 openfpgaloader-1.1.1.tar.gz
|
||||
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
|
||||
36
package/openfpgaloader/openfpgaloader.mk
Normal file
36
package/openfpgaloader/openfpgaloader.mk
Normal file
@@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
#
|
||||
# openfpgaloader
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPENFPGALOADER_VERSION = 1.1.1
|
||||
OPENFPGALOADER_SITE = $(call github,trabucayre,openFPGALoader,v$(OPENFPGALOADER_VERSION))
|
||||
OPENFPGALOADER_LICENSE = Apache-2.0
|
||||
OPENFPGALOADER_LICENSE_FILES = LICENSE
|
||||
OPENFPGALOADER_DEPENDENCIES = libftdi1 zlib
|
||||
|
||||
OPENFPGALOADER_CONF_OPTS = "-DCMAKE_DISABLE_FIND_PACKAGE_LibFTDI1=ON"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
OPENFPGALOADER_DEPENDENCIES += udev
|
||||
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=ON
|
||||
else
|
||||
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENFPGALOADER_CMSIS),y)
|
||||
OPENFPGALOADER_DEPENDENCIES += hidapi
|
||||
OPENFPGALOADER_CONF_OPTS += -DENABLE_CMSISDAP=ON
|
||||
else
|
||||
OPENFPGALOADER_CONF_OPTS += -DENABLE_CMSISDAP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENFPGALOADER_LIBGPIOD),y)
|
||||
OPENFPGALOADER_DEPENDENCIES += libgpiod
|
||||
OPENFPGALOADER_CONF_OPTS += -DENABLE_LIBGPIOD=ON
|
||||
else
|
||||
OPENFPGALOADER_CONF_OPTS += -DENABLE_LIBGPIOD=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user