buildroot add duo-wiringx package
Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
@ -2712,6 +2712,7 @@ endmenu
|
||||
menu "Sophgo packages"
|
||||
source "package/cvi-pinmux/Config.in"
|
||||
source "package/duo-pinmux/Config.in"
|
||||
source "package/duo-wiringx/Config.in"
|
||||
endmenu
|
||||
|
||||
menu "System tools"
|
||||
|
||||
26
buildroot-2024.02/package/duo-wiringx/0001-fix-time_t.patch
Normal file
26
buildroot-2024.02/package/duo-wiringx/0001-fix-time_t.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 027658db506ccc0097ad9c1d2cd4f7c9d8210edb Mon Sep 17 00:00:00 2001
|
||||
From: carbon <carbon@milkv.io>
|
||||
Date: Wed, 17 Apr 2024 15:09:26 +0800
|
||||
Subject: [PATCH] fix time_t
|
||||
|
||||
---
|
||||
src/wiringx.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/wiringx.c b/src/wiringx.c
|
||||
index 034674a..4171a75 100644
|
||||
--- a/src/wiringx.c
|
||||
+++ b/src/wiringx.c
|
||||
@@ -113,6 +113,9 @@ static struct spi_t spi[2] = {
|
||||
} while(0)
|
||||
#endif
|
||||
|
||||
+typedef time_t __time_t;
|
||||
+typedef suseconds_t __suseconds_t;
|
||||
+
|
||||
/* Both the delayMicroseconds and the delayMicrosecondsHard
|
||||
are taken from wiringPi */
|
||||
static void delayMicrosecondsHard(unsigned int howLong) {
|
||||
--
|
||||
2.25.1
|
||||
|
||||
6
buildroot-2024.02/package/duo-wiringx/Config.in
Normal file
6
buildroot-2024.02/package/duo-wiringx/Config.in
Normal file
@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_DUO_WIRINGX
|
||||
bool "wiringX"
|
||||
help
|
||||
wiringX for Milk-V Duo series
|
||||
|
||||
https://github.com/milkv-duo/duo-wiringx
|
||||
4
buildroot-2024.02/package/duo-wiringx/duo-wiringx.hash
Normal file
4
buildroot-2024.02/package/duo-wiringx/duo-wiringx.hash
Normal file
@ -0,0 +1,4 @@
|
||||
# From https://github.com/milkv-duo/duo-wiringx
|
||||
sha256 1e2ef2d87fa7b24e84e52464f77ac54b96c0854fb3ead66541b411552ca6256e duo-wiringx-1.0.2.tar.gz
|
||||
# Locally calculated
|
||||
sha256 fab3dd6bdab226f1c08630b1dd917e11fcb4ec5e1e020e2c16f83a0a13863e85 LICENSE
|
||||
7
buildroot-2024.02/package/duo-wiringx/duo-wiringx.mk
Normal file
7
buildroot-2024.02/package/duo-wiringx/duo-wiringx.mk
Normal file
@ -0,0 +1,7 @@
|
||||
DUO_WIRINGX_VERSION = 1.0.2
|
||||
DUO_WIRINGX_SITE = $(call github,milkv-duo,duo-wiringx,$(DUO_WIRINGX_VERSION))
|
||||
DUO_WIRINGX_LICENSE = MPL-2.0
|
||||
DUO_WIRINGX_LICENSE_FILES = COPYING
|
||||
DUO_WIRINGX_INSTALL_STAGING = YES
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user