added my Recipes
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
DESCRIPTION = "Acpitool is a Linux ACPI client. It simply reads /proc/acpi or /sys/class entries \
|
||||
and presents the output in a meaningfull, human-readable format."
|
||||
HOMEPAGE = "http://freeunix.dyndns.org:8088/site2/acpitool.shtml"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
|
||||
SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.bz2 \
|
||||
"
|
||||
|
||||
inherit autotools
|
||||
|
||||
SRC_URI[md5sum] = "9e4ec55201be0be71ffbc56d38b42b57"
|
||||
SRC_URI[sha256sum] = "004fb6cd43102918b6302cf537a2db7ceadda04aef2e0906ddf230f820dad34f"
|
||||
@@ -0,0 +1,28 @@
|
||||
From 0a948d8d91b789e9c9b60136fada75b1d464af63 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 2 Sep 2022 18:31:27 -0700
|
||||
Subject: [PATCH] con2fbmap: Add missing include on string.h
|
||||
|
||||
strerror() is from string.h therefore include it to fix -Wimplicit-function-declaration
|
||||
warnings
|
||||
|
||||
Upstream-Status: Submitted [https://gitlab.com/pibox/con2fbmap/-/merge_requests/1]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/con2fbmap.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/con2fbmap.c b/src/con2fbmap.c
|
||||
index 7831931..7a2e870 100644
|
||||
--- a/src/con2fbmap.c
|
||||
+++ b/src/con2fbmap.c
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h> /* for strerror */
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (C) 2020 Khem Raj <raj.khem@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "Simple utility for swapping an fbtft-based device as the console."
|
||||
HOMEPAGE = "https://gitlab.com/pibox/con2fbmap"
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
SECTION = "console/utils"
|
||||
DEPENDS = ""
|
||||
|
||||
SRCREV = "61ed2f28b294b1ebeb767df8cb5fcd391709c8e2"
|
||||
SRC_URI = "git://gitlab.com/pibox/con2fbmap.git;protocol=https;branch=master \
|
||||
file://0001-con2fbmap-Add-missing-include-on-string.h.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
--- git.old/Makefile 2012-04-17 13:29:46.280435340 +0200
|
||||
+++ git/Makefile 2012-04-17 13:31:13.664433470 +0200
|
||||
@@ -77,17 +77,7 @@ INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
||||
|
||||
-# If you are running a cross compiler, you may want to set this
|
||||
-# to something more interesting, like "arm-linux-". If you want
|
||||
-# to compile vs uClibc, that can be done here as well.
|
||||
-CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
|
||||
-CC = $(CROSS)gcc
|
||||
-LD = $(CROSS)gcc
|
||||
-AR = $(CROSS)ar
|
||||
-STRIP = $(CROSS)strip
|
||||
-RANLIB = $(CROSS)ranlib
|
||||
-HOSTCC = gcc
|
||||
-
|
||||
+HOSTCC = $(BUILD_CC)
|
||||
|
||||
# Now we set up the build system
|
||||
#
|
||||
@@ -95,7 +85,7 @@ HOSTCC = gcc
|
||||
# set up PWD so that older versions of make will work with our build.
|
||||
PWD = $(shell pwd)
|
||||
|
||||
-export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS
|
||||
+export CFLAGS LDFLAGS LIB_OBJS
|
||||
|
||||
# check if compiler option is supported
|
||||
cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;}
|
||||
@@ -0,0 +1,37 @@
|
||||
DESCRIPTION = "To make access to the Linux kernel cpufreq subsystem easier for users and cpufreq userspace tools, a cpufrequtils package was created"
|
||||
|
||||
inherit gettext
|
||||
|
||||
DEPENDS = "libtool-cross"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
|
||||
SRCREV = "a2f0c39d5f21596bb9f5223e895c0ff210b265d0"
|
||||
# SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git
|
||||
|
||||
SRC_URI = "git://github.com/emagii/cpufrequtils.git;branch=master;protocol=https \
|
||||
file://0001-dont-unset-cflags.patch \
|
||||
"
|
||||
|
||||
EXTRA_OEMAKE:append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} "
|
||||
|
||||
PR = "r5"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
EXTRA_OEMAKE = "V=1 CROSS=${TARGET_PREFIX} STRIPCMD=echo 'CP=cp'"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake -e install DESTDIR=${D}
|
||||
rm -f ${D}${libdir}/libcpufreq.so.0 ${D}${libdir}/libcpufreq.so
|
||||
ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so.0
|
||||
ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
SUMMARY = "Userspace helper for Linux kernel EDAC drivers"
|
||||
HOMEPAGE = "https://github.com/grondo/edac-utils"
|
||||
DESCRIPTION = "EDAC (Error Detection and Correction) is a set of Linux kernel \
|
||||
modules that handle reporting of hardware-related errors. Currently \
|
||||
these modules mainly handle detection of ECC memory errors for many \
|
||||
x86 and x86-64 chipsets and PCI bus parity errors."
|
||||
SECTION = "Applications/System"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
DEPENDS = " sysfsutils"
|
||||
|
||||
SRCREV = "1c57818ecee186aa47af0342149577df5302c022"
|
||||
PV = "0.18+git${SRCPV}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI = "git://github.com/grondo/edac-utils;branch=master;protocol=https \
|
||||
file://make-init-script-be-able-to-automatically-load-EDAC-.patch \
|
||||
file://add-restart-to-initscript.patch \
|
||||
file://edac.service \
|
||||
"
|
||||
|
||||
inherit autotools-brokensep systemd
|
||||
|
||||
do_configure:prepend () {
|
||||
touch ${S}/ChangeLog
|
||||
${S}/bootstrap
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}:x86 = "dmidecode"
|
||||
RDEPENDS:${PN}:x86-64 = "dmidecode"
|
||||
RDEPENDS:${PN}:arm = "dmidecode"
|
||||
RDEPENDS:${PN}:aarch64 = "dmidecode"
|
||||
RDEPENDS:${PN}:powerpc = "dmidecode"
|
||||
RDEPENDS:${PN}:powerpc64 = "dmidecode"
|
||||
RDEPENDS:${PN}:powerpc64le = "dmidecode"
|
||||
RDEPENDS:${PN}:append = " \
|
||||
perl \
|
||||
perl-module-file-basename \
|
||||
perl-module-file-find \
|
||||
perl-module-getopt-long \
|
||||
perl-module-posix \
|
||||
perl-module-overload \
|
||||
perl-module-overloading \
|
||||
perl-module-file-glob \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 644 ${WORKDIR}/edac.service ${D}/${systemd_unitdir}/system
|
||||
sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}/${systemd_unitdir}/system/edac.service
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "edac.service"
|
||||
SYSTEMD_AUTO_ENABLE:${PN} = "disable"
|
||||
@@ -0,0 +1,33 @@
|
||||
From 3ade837f64de0cfe2aed5bc52f7919760f350531 Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Fri, 7 Mar 2014 00:57:12 -0500
|
||||
Subject: [PATCH] edac: add restart to initscript
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
---
|
||||
src/etc/edac.init.in | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/etc/edac.init.in b/src/etc/edac.init.in
|
||||
index adf76ee..007a519 100644
|
||||
--- a/src/etc/edac.init.in
|
||||
+++ b/src/etc/edac.init.in
|
||||
@@ -155,8 +155,12 @@ case "$1" in
|
||||
status)
|
||||
service_status
|
||||
;;
|
||||
+ restart)
|
||||
+ service_stop
|
||||
+ service_start
|
||||
+ ;;
|
||||
*)
|
||||
- COMMANDS="start|stop|status"
|
||||
+ COMMANDS="start|stop|status|restart"
|
||||
echo "Usage: $0 {${COMMANDS}}"
|
||||
exit 2
|
||||
;;
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Initialize EDAC Drivers For Machine Hardware
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@SBINDIR@/edac-ctl --register-labels
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,98 @@
|
||||
make init script be able to automatically load EDAC module.
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
|
||||
---
|
||||
src/etc/edac.init.in | 49 +++++++++++++++++++++++++++++++++++++++++++++++--
|
||||
1 file changed, 47 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/etc/edac.init.in b/src/etc/edac.init.in
|
||||
index 7a51da9..5b568c4 100644
|
||||
--- a/src/etc/edac.init.in
|
||||
+++ b/src/etc/edac.init.in
|
||||
@@ -42,7 +42,6 @@ for dir in "$sysconfdir/default" "$sysconfdir/sysconfig"; do
|
||||
[ -f "$dir/$SERVICE" ] && . "$dir/$SERVICE"
|
||||
done
|
||||
|
||||
-
|
||||
###############################################################################
|
||||
|
||||
service_start ()
|
||||
@@ -52,6 +51,46 @@ service_start ()
|
||||
# Assume that if EDAC_DRIVER is not set, then EDAC is configured
|
||||
# automatically, thus return successfully, but don't do anything.
|
||||
#
|
||||
+ if [ ! -f /etc/edac/edac-driver ]; then
|
||||
+ [ -d /sys/bus/edac/devices/mc/mc0 ] && \
|
||||
+ echo `lsmod | grep _edac | cut -d" " -f1` > /etc/edac/edac-driver
|
||||
+ fi
|
||||
+
|
||||
+ [ -f /etc/edac/edac-driver ] && EDAC_DRIVER=`cat /etc/edac/edac-driver`
|
||||
+
|
||||
+ if [ -z "$EDAC_DRIVER" ]; then
|
||||
+
|
||||
+ DRIVER_PATH=/lib/modules/`uname -r`/kernel/drivers/edac
|
||||
+ oldpath=`pwd`
|
||||
+ if [ -d $DRIVER_PATH ]; then
|
||||
+
|
||||
+ cd $DRIVER_PATH
|
||||
+
|
||||
+ for i in $(/bin/ls | /usr/bin/cut -d. -f1) ; do
|
||||
+ /sbin/modprobe $i 2>/dev/null
|
||||
+ if [ -d /sys/bus/edac/devices/mc/mc0 ]; then
|
||||
+ echo $i> /etc/edac/edac-driver
|
||||
+ EDAC_DRIVER=$i
|
||||
+ break
|
||||
+ fi
|
||||
+ /sbin/modprobe -r $i 2>/dev/null
|
||||
+ done
|
||||
+
|
||||
+ cd "$oldpath"
|
||||
+
|
||||
+
|
||||
+ if [ -z "$EDAC_DRIVER" ]; then
|
||||
+ echo "This board may not support EDAC, or EDAC module may not be compiled in"
|
||||
+ exit
|
||||
+ fi
|
||||
+
|
||||
+ else
|
||||
+ echo "This board may not support EDAC, or EDAC module may not be compiled in"
|
||||
+ exit
|
||||
+ fi
|
||||
+
|
||||
+ fi
|
||||
+
|
||||
if [ -n "$EDAC_DRIVER" ]; then
|
||||
echo -n "Starting ${SERVICE}: "
|
||||
modprobe $EDAC_DRIVER
|
||||
@@ -76,12 +115,15 @@ service_start ()
|
||||
service_stop ()
|
||||
{
|
||||
echo -n "Disabling ${SERVICE}: "
|
||||
+
|
||||
+ [ -f /etc/edac/edac-driver ] && EDAC_DRIVER=`cat /etc/edac/edac-driver`
|
||||
+
|
||||
if [ -n "$EDAC_DRIVER" ]; then
|
||||
modprobe -r $EDAC_DRIVER
|
||||
STATUS=$?
|
||||
[ $STATUS -eq 0 ] && echo success || echo failure
|
||||
else
|
||||
- echo "Not supported for this configuration."
|
||||
+ echo "Not supported for this configuration, or EDAC Module is not loaded."
|
||||
STATUS=6
|
||||
fi
|
||||
}
|
||||
@@ -92,6 +134,9 @@ service_status ()
|
||||
{
|
||||
# Print the current status of the service. Required by LSB.
|
||||
#
|
||||
+ [ -f /etc/edac/edac-driver ] && EDAC_DRIVER=`cat /etc/edac/edac-driver`
|
||||
+ [ -z "$EDAC_DRIVER" ] && STATUS=1 && exit
|
||||
+
|
||||
edac-ctl --status
|
||||
STATUS=0
|
||||
}
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Linux Firmware Loader Daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@BINDIR@/firmwared -d /lib/firmware
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "Linux Firmware Loader Daemon"
|
||||
DESCRIPTION = "The Linux Firmware Loader Daemon monitors the kernel for \
|
||||
firmware requests and uploads the firmware blobs it has via the sysfs \
|
||||
interface."
|
||||
HOMEPAGE = "https://github.com/teg/firmwared"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE-APACHE;md5=7b486c2338d225a1405d979ed2c15ce8 \
|
||||
file://COPYING;md5=daa868b8e1ae17d03228a1145b4060da"
|
||||
|
||||
SRC_URI = "git://github.com/teg/firmwared.git;branch=master;protocol=https \
|
||||
file://firmwared.service"
|
||||
|
||||
PV = "0+git${SRCPV}"
|
||||
SRCREV = "2e6b5db43d63a5c0283a4cae9a6a20b7ad107a04"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "glib-2.0 systemd"
|
||||
|
||||
inherit pkgconfig autotools systemd features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "systemd"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "firmwared.service"
|
||||
|
||||
do_configure:prepend() {
|
||||
${S}/autogen.sh
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/firmwared.service ${D}${systemd_system_unitdir}
|
||||
sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/firmwared.service
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
From 2c777126765b4095bf481d5cfe4a21470374d940 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 30 Mar 2021 15:12:09 -0700
|
||||
Subject: [PATCH] flashrom: Mark RISCV as non memory-mapped I/O architecture
|
||||
|
||||
Upstream-Status: Submitted [https://review.coreboot.org/c/flashrom/+/51960]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Change-Id: I55c4e8529d36f0850dd56441c3fb8602c5d889fd
|
||||
---
|
||||
Makefile | 2 +-
|
||||
hwaccess.h | 4 ++++
|
||||
2 files changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 6d37d55..203e04b 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -559,7 +559,7 @@ endif
|
||||
# Disable all drivers needing raw access (memory, PCI, port I/O) on
|
||||
# architectures with unknown raw access properties.
|
||||
# Right now those architectures are alpha hppa m68k sh s390
|
||||
-ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc arc))
|
||||
+ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc arc riscv))
|
||||
ifeq ($(CONFIG_RAYER_SPI), yes)
|
||||
UNSUPPORTED_FEATURES += CONFIG_RAYER_SPI=yes
|
||||
else
|
||||
diff --git a/hwaccess.h b/hwaccess.h
|
||||
index 5602c15..e79988a 100644
|
||||
--- a/hwaccess.h
|
||||
+++ b/hwaccess.h
|
||||
@@ -295,6 +295,10 @@ int libpayload_wrmsr(int addr, msr_t msr);
|
||||
|
||||
/* Non memory mapped I/O is not supported on ARC. */
|
||||
|
||||
+#elif IS_RISCV
|
||||
+
|
||||
+/* Non memory mapped I/O is not supported on RISCV. */
|
||||
+
|
||||
#else
|
||||
|
||||
#error Unknown architecture, please check if it supports PCI port IO.
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
From 3334dd4e9fc34c79c3925c3c24869939d8955f21 Mon Sep 17 00:00:00 2001
|
||||
From: Rosen Penev <rosenp@gmail.com>
|
||||
Date: Sat, 18 Jul 2020 12:16:00 -0700
|
||||
Subject: [PATCH] hwaccess: use __asm__ as is done elsewhere
|
||||
|
||||
Fixes compilation under powerpc platform. Made the change for the SPARC
|
||||
platform as well.
|
||||
|
||||
../hwaccess.c: In function 'sync_primitive':
|
||||
../hwaccess.c:74:2: warning: implicit declaration of function 'asm'
|
||||
[-Wimplicit-function-declaration]
|
||||
74 | asm("eieio" : : : "memory");
|
||||
| ^~~
|
||||
../hwaccess.c:74:13: error: expected ')' before ':' token
|
||||
74 | asm("eieio" : : : "memory");
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/flashrom/flashrom/pull/155]
|
||||
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
hwaccess.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/hwaccess.c b/hwaccess.c
|
||||
index 48ccb34..2a39989 100644
|
||||
--- a/hwaccess.c
|
||||
+++ b/hwaccess.c
|
||||
@@ -71,18 +71,18 @@ static inline void sync_primitive(void)
|
||||
* See also https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/memory-barriers.txt
|
||||
*/
|
||||
#if IS_PPC // cf. http://lxr.free-electrons.com/source/arch/powerpc/include/asm/barrier.h
|
||||
- asm("eieio" : : : "memory");
|
||||
+ __asm__ ("eieio" : : : "memory");
|
||||
#elif IS_SPARC
|
||||
#if defined(__sparc_v9__) || defined(__sparcv9)
|
||||
/* Sparc V9 CPUs support three different memory orderings that range from x86-like TSO to PowerPC-like
|
||||
* RMO. The modes can be switched at runtime thus to make sure we maintain the right order of access we
|
||||
* use the strongest hardware memory barriers that exist on Sparc V9. */
|
||||
- asm volatile ("membar #Sync" ::: "memory");
|
||||
+ __asm__ volatile ("membar #Sync" ::: "memory");
|
||||
#elif defined(__sparc_v8__) || defined(__sparcv8)
|
||||
/* On SPARC V8 there is no RMO just PSO and that does not apply to I/O accesses... but if V8 code is run
|
||||
* on V9 CPUs it might apply... or not... we issue a write barrier anyway. That's the most suitable
|
||||
* operation in the V8 instruction set anyway. If you know better then please tell us. */
|
||||
- asm volatile ("stbar");
|
||||
+ __asm__ volatile ("stbar");
|
||||
#else
|
||||
#error Unknown and/or unsupported SPARC instruction set version detected.
|
||||
#endif
|
||||
--
|
||||
2.32.0
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
Add a ftdi option alongside USB and PCI to control the external dependency, and
|
||||
ensure that the build is successful in all combinations of options.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 375089c..0df9d69 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -91,6 +91,8 @@ else
|
||||
config_digilent_spi = false
|
||||
config_developerbox_spi = false
|
||||
config_pickit2_spi = false
|
||||
+ config_stlinkv3_spi = false
|
||||
+ config_usbblaster_spi = false
|
||||
endif
|
||||
|
||||
# some programmers require libpci
|
||||
@@ -118,6 +120,21 @@ else
|
||||
config_satasii = false
|
||||
endif
|
||||
|
||||
+# some programmers require libftdi
|
||||
+if get_option('ftdi')
|
||||
+ deps += dependency('libftdi1')
|
||||
+else
|
||||
+ config_ft2232_spi = false
|
||||
+ config_usbblaster_spi = false
|
||||
+endif
|
||||
+
|
||||
+if not (target_machine.cpu_family() == 'x86' or target_machine.cpu_family() == 'x86_64')
|
||||
+ config_satamv = false
|
||||
+ config_nic3com = false
|
||||
+ config_rayer_spi = false
|
||||
+ config_nicrealtek = false
|
||||
+endif
|
||||
+
|
||||
# set defines for configured programmers
|
||||
if config_atahpt
|
||||
srcs += 'atahpt.c'
|
||||
@@ -163,7 +180,6 @@ endif
|
||||
if config_ft2232_spi
|
||||
srcs += 'ft2232_spi.c'
|
||||
cargs += '-DCONFIG_FT2232_SPI=1'
|
||||
- deps += dependency('libftdi1')
|
||||
cargs += '-DHAVE_FT232H=1'
|
||||
endif
|
||||
if config_gfxnvidia
|
||||
@@ -216,6 +232,7 @@ endif
|
||||
if config_nicintel
|
||||
srcs += 'nicintel.c'
|
||||
cargs += '-DCONFIG_NICINTEL=1'
|
||||
+ need_raw_access = true
|
||||
endif
|
||||
if config_nicintel_eeprom
|
||||
srcs += 'nicintel_eeprom.c'
|
||||
diff --git a/meson_options.txt b/meson_options.txt
|
||||
index ea87311..b6b842d 100644
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -1,5 +1,6 @@
|
||||
option('pciutils', type : 'boolean', value : true, description : 'use pciutils')
|
||||
option('usb', type : 'boolean', value : true, description : 'use libusb1')
|
||||
+option('ftdi', type : 'boolean', value : true, description : 'use libftdi')
|
||||
|
||||
option('config_atahpt', type : 'boolean', value : false, description : 'Highpoint (HPT) ATA/RAID controllers')
|
||||
option('config_atapromise', type : 'boolean', value : false, description : 'Promise ATA controller')
|
||||
@@ -0,0 +1,20 @@
|
||||
DESCRIPTION = "flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
HOMEPAGE = "http://flashrom.org"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
SRC_URI = "https://download.flashrom.org/releases/flashrom-v${PV}.tar.bz2 \
|
||||
file://meson-fixes.patch \
|
||||
file://0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch \
|
||||
file://0001-hwaccess-use-__asm__-as-is-done-elsewhere.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "89a7ff5beb08c89b8795bbd253a51b9453547a864c31793302296b56bbc56d65"
|
||||
|
||||
S = "${WORKDIR}/flashrom-v${PV}"
|
||||
|
||||
inherit meson pkgconfig
|
||||
|
||||
PACKAGECONFIG ??= "pci usb ftdi"
|
||||
PACKAGECONFIG[pci] = "-Dpciutils=true,-Dpciutils=false,pciutils"
|
||||
PACKAGECONFIG[usb] = "-Dusb=true,-Dusb=false,libusb"
|
||||
PACKAGECONFIG[ftdi] = "-Dftdi=true,-Dftdi=false,libftdi"
|
||||
@@ -0,0 +1,53 @@
|
||||
Change the efi-cc argument to take an array, so that we can pass compiler flags
|
||||
such as --sysroot.
|
||||
|
||||
In the long term changing the fwupd-efi build to use the standard Meson
|
||||
CC/LD/etc would be the preferred fix.
|
||||
|
||||
Upstream-Status: Inappropriate [better fix in progress]
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
diff --git a/efi/generate_sbat.py b/efi/generate_sbat.py
|
||||
index e42b365..4831a48 100755
|
||||
--- a/efi/generate_sbat.py
|
||||
+++ b/efi/generate_sbat.py
|
||||
@@ -7,6 +7,7 @@
|
||||
#
|
||||
# pylint: disable=missing-docstring, invalid-name
|
||||
|
||||
+import shlex
|
||||
import subprocess
|
||||
import sys
|
||||
import argparse
|
||||
@@ -19,7 +20,7 @@ def _generate_sbat(args):
|
||||
FWUPD_URL = "https://github.com/fwupd/fwupd-efi"
|
||||
|
||||
subprocess.run(
|
||||
- [args.cc, "-x", "c", "-c", "-o", args.outfile, "/dev/null"], check=True
|
||||
+ shlex.split(args.cc) + ["-x", "c", "-c", "-o", args.outfile, "/dev/null"], check=True
|
||||
)
|
||||
|
||||
# not specified
|
||||
diff --git a/efi/meson.build b/efi/meson.build
|
||||
index 68ea4aa..dcf0d43 100644
|
||||
--- a/efi/meson.build
|
||||
+++ b/efi/meson.build
|
||||
@@ -187,7 +187,7 @@ o_file5 = custom_target('fwup-sbat.o',
|
||||
command : [
|
||||
generate_sbat,
|
||||
'@OUTPUT@',
|
||||
- '--cc', efi_cc,
|
||||
+ '--cc', ' '.join(efi_cc),
|
||||
'--objcopy', objcopy,
|
||||
'--project-name', meson.project_name(),
|
||||
'--project-version', meson.project_version(),
|
||||
diff --git a/meson_options.txt b/meson_options.txt
|
||||
index d869cd2..17ef7fb 100644
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-option('efi-cc', type : 'string', value : 'gcc', description : 'the compiler to use for EFI modules')
|
||||
+option('efi-cc', type : 'array', value : ['gcc'], description : 'the compiler to use for EFI modules')
|
||||
option('efi-ld', type : 'string', value : 'ld', description : 'the linker to use for EFI modules')
|
||||
option('efi-libdir', type : 'string', description : 'path to the EFI lib directory')
|
||||
option('efi-ldsdir', type : 'string', description : 'path to the EFI lds directory')
|
||||
33
meta-openembedded/meta-oe/recipes-bsp/fwupd/fwupd-efi_1.3.bb
Normal file
33
meta-openembedded/meta-oe/recipes-bsp/fwupd/fwupd-efi_1.3.bb
Normal file
@@ -0,0 +1,33 @@
|
||||
SUMMARY = "EFI executable for fwupd"
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
SRC_URI = "git://github.com/fwupd/fwupd-efi;protocol=https;branch=main \
|
||||
file://cc.patch"
|
||||
SRCREV = "36ce593f58e391cca43fd388824496ff98d83480"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "gnu-efi"
|
||||
|
||||
COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
|
||||
|
||||
inherit meson
|
||||
|
||||
# These should be configured as needed
|
||||
SBAT_DISTRO_ID ?= "${DISTRO}"
|
||||
SBAT_DISTRO_SUMMARY ?= "${DISTRO_NAME}"
|
||||
SBAT_DISTRO_URL ?= ""
|
||||
|
||||
EXTRA_OEMESON += "-Defi-cc="${@meson_array('CC', d)}" \
|
||||
-Defi-ld='${HOST_PREFIX}ld' \
|
||||
-Defi-includedir=${STAGING_INCDIR}/efi \
|
||||
-Defi-libdir=${STAGING_LIBDIR} \
|
||||
-Defi_sbat_distro_id='${SBAT_DISTRO_ID}' \
|
||||
-Defi_sbat_distro_summary='${SBAT_DISTRO_SUMMARY}' \
|
||||
-Defi_sbat_distro_url='${SBAT_DISTRO_URL}' \
|
||||
-Defi_sbat_distro_pkgname='${PN}' \
|
||||
-Defi_sbat_distro_version='${PV}'\
|
||||
"
|
||||
|
||||
# The compile assumes GCC at present
|
||||
TOOLCHAIN = "gcc"
|
||||
@@ -0,0 +1,41 @@
|
||||
From b1df1ed3a21b8ef0244102043a8fb88b0ccc3f91 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 17 Apr 2023 11:30:21 -0700
|
||||
Subject: [PATCH] meson: Avoid absolute buildtime paths in generated headers
|
||||
|
||||
using meson.project_source_root() means the path emitted to include .h
|
||||
files is absolute and it makes its way into PN-src as well, which infact
|
||||
is not going to work if the -src package was used to re-build this in a
|
||||
different build path. Therefore use relative path which is '.' and
|
||||
relative to ${S}
|
||||
|
||||
Changes
|
||||
include "<abspath>/plugins/acpi-dmar/fu-acpi-dmar-plugin.h"
|
||||
to
|
||||
include "./plugins/acpi-dmar/fu-acpi-dmar-plugin.h"
|
||||
|
||||
in generated build/src/fu-plugin-builtin.h
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/meson.build | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/meson.build b/src/meson.build
|
||||
index b9f6736..bb856ea 100644
|
||||
--- a/src/meson.build
|
||||
+++ b/src/meson.build
|
||||
@@ -188,7 +188,7 @@ plugins_hdr = custom_target('fwupd-generate-plugins-header',
|
||||
command : [
|
||||
join_paths(meson.project_source_root(), 'contrib', 'generate-plugins-header.py'),
|
||||
'@OUTPUT@',
|
||||
- meson.project_source_root(),
|
||||
+ '.',
|
||||
','.join(plugin_names),
|
||||
],
|
||||
)
|
||||
--
|
||||
2.40.0
|
||||
|
||||
6
meta-openembedded/meta-oe/recipes-bsp/fwupd/fwupd/run-ptest
Executable file
6
meta-openembedded/meta-oe/recipes-bsp/fwupd/fwupd/run-ptest
Executable file
@@ -0,0 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Don't run all of the fwupd tests, as fwupd/fwupdmgr.test needs a custom
|
||||
# /etc/fwupd/daemon.conf with DisabledPlugins unset.
|
||||
|
||||
gnome-desktop-testing-runner fwupd/fwupd.test
|
||||
142
meta-openembedded/meta-oe/recipes-bsp/fwupd/fwupd_1.8.9.bb
Normal file
142
meta-openembedded/meta-oe/recipes-bsp/fwupd/fwupd_1.8.9.bb
Normal file
@@ -0,0 +1,142 @@
|
||||
SUMMARY = "A simple daemon to allow session software to update firmware"
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
DEPENDS = "glib-2.0 libxmlb json-glib libjcat gcab vala-native"
|
||||
|
||||
SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \
|
||||
file://0001-meson-Avoid-absolute-buildtime-paths-in-generated-he.patch \
|
||||
file://run-ptest"
|
||||
SRC_URI[sha256sum] = "719a791ac4ba5988aeb93ec42778bd65d33cb075d0c093b5c04e5e1682be528a"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
|
||||
|
||||
# Machine-specific as we examine MACHINE_FEATURES to decide whether to build the UEFI plugins
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit meson vala gobject-introspection systemd bash-completion pkgconfig gi-docgen ptest manpages useradd
|
||||
|
||||
GIDOCGEN_MESON_OPTION = 'docs'
|
||||
GIDOCGEN_MESON_ENABLE_FLAG = 'docgen'
|
||||
GIDOCGEN_MESON_DISABLE_FLAG = 'disabled'
|
||||
|
||||
PACKAGECONFIG ??= "curl gnutls gudev gusb \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'bluetooth polkit', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd offline', '', d)} \
|
||||
${@bb.utils.contains('MACHINE_FEATURES', 'efi', 'plugin_uefi_capsule plugin_uefi_pk', '', d)} \
|
||||
${@bb.utils.contains('PTEST_ENABLED', '1', 'tests plugin_dummy', '', d)} \
|
||||
hsi \
|
||||
plugin_android_boot \
|
||||
plugin_acpi_phat \
|
||||
plugin_bcm57xx \
|
||||
plugin_emmc \
|
||||
plugin_ep963x \
|
||||
plugin_fastboot \
|
||||
plugin_flashrom \
|
||||
plugin_gpio \
|
||||
plugin_igsc \
|
||||
plugin_intel_me \
|
||||
plugin_intel_spi \
|
||||
plugin_logitech_bulkcontroller \
|
||||
plugin_logitech_scribe \
|
||||
plugin_modem_manager \
|
||||
plugin_msr \
|
||||
plugin_nitrokey \
|
||||
plugin_nvme \
|
||||
plugin_parade_lspcon \
|
||||
plugin_pixart_rf \
|
||||
plugin_realtek_mst \
|
||||
plugin_redfish \
|
||||
plugin_synaptics_mst \
|
||||
plugin_synaptics_rmi \
|
||||
plugin_scsi \
|
||||
plugin_uf2 \
|
||||
plugin_upower \
|
||||
sqlite"
|
||||
|
||||
PACKAGECONFIG[bluetooth] = "-Dbluez=true,-Dbluez=false"
|
||||
PACKAGECONFIG[compat-cli] = "-Dcompat_cli=true,-Dcompat_cli=false"
|
||||
PACKAGECONFIG[consolekit] = "-Dconsolekit=true,-Dconsolekit=false,consolekit"
|
||||
PACKAGECONFIG[curl] = "-Dcurl=true,-Dcurl=false,curl"
|
||||
PACKAGECONFIG[firmware-packager] = "-Dfirmware-packager=true,-Dfirmware-packager=false"
|
||||
PACKAGECONFIG[fish-completion] = "-Dfish_completion=true,-Dfish_completion=false"
|
||||
PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
|
||||
PACKAGECONFIG[gudev] = "-Dgudev=true,-Dgudev=false,libgudev"
|
||||
PACKAGECONFIG[gusb] = "-Dgusb=true,-Dgusb=false,libgusb"
|
||||
PACKAGECONFIG[hsi] = "-Dhsi=true,-Dhsi=false"
|
||||
PACKAGECONFIG[libarchive] = "-Dlibarchive=true,-Dlibarchive=false,libarchive"
|
||||
PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false"
|
||||
PACKAGECONFIG[metainfo] = "-Dmetainfo=true,-Dmetainfo=false"
|
||||
PACKAGECONFIG[offline] = "-Doffline=true,-Doffline=false"
|
||||
PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false,polkit"
|
||||
PACKAGECONFIG[sqlite] = "-Dsqlite=true,-Dsqlite=false,sqlite3"
|
||||
PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
|
||||
PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,gcab-native"
|
||||
|
||||
|
||||
# TODO plugins-all meta-option that expands to all plugin_*?
|
||||
PACKAGECONFIG[plugin_acpi_phat] = "-Dplugin_acpi_phat=true,-Dplugin_acpi_phat=false"
|
||||
PACKAGECONFIG[plugin_android_boot] = "-Dplugin_android_boot=enabled,-Dplugin_android_boot=disabled"
|
||||
PACKAGECONFIG[plugin_bcm57xx] = "-Dplugin_bcm57xx=true,-Dplugin_bcm57xx=false"
|
||||
PACKAGECONFIG[plugin_cfu] = "-Dplugin_cfu=true,-Dplugin_cfu=false"
|
||||
PACKAGECONFIG[plugin_dell] = "-Dplugin_dell=true,-Dplugin_dell=false,libsmbios"
|
||||
PACKAGECONFIG[plugin_dummy] = "-Dplugin_dummy=true,-Dplugin_dummy=false"
|
||||
PACKAGECONFIG[plugin_emmc] = "-Dplugin_emmc=true,-Dplugin_emmc=false"
|
||||
PACKAGECONFIG[plugin_ep963x] = "-Dplugin_ep963x=true,-Dplugin_ep963x=false"
|
||||
PACKAGECONFIG[plugin_fastboot] = "-Dplugin_fastboot=true,-Dplugin_fastboot=false"
|
||||
PACKAGECONFIG[plugin_flashrom] = "-Dplugin_flashrom=true,-Dplugin_flashrom=false,flashrom"
|
||||
PACKAGECONFIG[plugin_gpio] = "-Dplugin_gpio=true,-Dplugin_gpio=false"
|
||||
PACKAGECONFIG[plugin_igsc] = "-Dplugin_igsc=enabled,-Dplugin_igsc=disabled"
|
||||
PACKAGECONFIG[plugin_intel_me] = "-Dplugin_intel_me=enabled,-Dplugin_intel_me=disabled"
|
||||
PACKAGECONFIG[plugin_intel_spi] = "-Dplugin_intel_spi=true -Dlzma=true,-Dplugin_intel_spi=false -Dlzma=false,xz"
|
||||
PACKAGECONFIG[plugin_logitech_bulkcontroller] = "-Dplugin_logitech_bulkcontroller=true,-Dplugin_logitech_bulkcontroller=false,protobuf-c-native protobuf-c"
|
||||
PACKAGECONFIG[plugin_logitech_scribe] = "-Dplugin_logitech_scribe=enabled,-Dplugin_logitech_scribe=disabled"
|
||||
PACKAGECONFIG[plugin_modem_manager] = "-Dplugin_modem_manager=true,-Dplugin_modem_manager=false,libqmi modemmanager"
|
||||
PACKAGECONFIG[plugin_msr] = "-Dplugin_msr=true,-Dplugin_msr=false,cpuid"
|
||||
PACKAGECONFIG[plugin_nitrokey] = "-Dplugin_nitrokey=true,-Dplugin_nitrokey=false"
|
||||
PACKAGECONFIG[plugin_nvme] = "-Dplugin_nvme=true,-Dplugin_nvme=false"
|
||||
PACKAGECONFIG[plugin_parade_lspcon] = "-Dplugin_parade_lspcon=true,-Dplugin_parade_lspcon=false"
|
||||
PACKAGECONFIG[plugin_pixart_rf] = "-Dplugin_pixart_rf=true,-Dplugin_pixart_rf=false"
|
||||
PACKAGECONFIG[plugin_powerd] = "-Dplugin_powerd=true,-Dplugin_powerd=false"
|
||||
PACKAGECONFIG[plugin_realtek_mst] = "-Dplugin_realtek_mst=true,-Dplugin_realtek_mst=false"
|
||||
PACKAGECONFIG[plugin_redfish] = "-Dplugin_redfish=true,-Dplugin_redfish=false"
|
||||
PACKAGECONFIG[plugin_scsi] = "-Dplugin_scsi=true,-Dplugin_scsi=false"
|
||||
PACKAGECONFIG[plugin_synaptics_mst] = "-Dplugin_synaptics_mst=true,-Dplugin_synaptics_mst=false"
|
||||
PACKAGECONFIG[plugin_synaptics_rmi] = "-Dplugin_synaptics_rmi=true,-Dplugin_synaptics_rmi=false"
|
||||
PACKAGECONFIG[plugin_tpm] = "-Dplugin_tpm=true,-Dplugin_tpm=false,tpm2-tss"
|
||||
# Turn off the capsule splash as it needs G-I at buildtime, which isn't currently supported
|
||||
PACKAGECONFIG[plugin_uefi_capsule] = "-Dplugin_uefi_capsule=true -Dplugin_uefi_capsule_splash=false,-Dplugin_uefi_capsule=false,efivar fwupd-efi"
|
||||
PACKAGECONFIG[plugin_uefi_pk] = "-Dplugin_uefi_pk=true,-Dplugin_uefi_pk=false"
|
||||
PACKAGECONFIG[plugin_uf2] = "-Dplugin_uf2=true,-Dplugin_uf2=false"
|
||||
PACKAGECONFIG[plugin_upower] = "-Dplugin_upower=true,-Dplugin_upower=false"
|
||||
|
||||
# Always disable these plugins on non-x86 platforms as they don't compile or are useless
|
||||
DISABLE_NON_X86 = "plugin_intel_me plugin_intel_spi plugin_msr"
|
||||
DISABLE_NON_X86:x86 = ""
|
||||
DISABLE_NON_X86:x86-64 = ""
|
||||
PACKAGECONFIG:remove = "${DISABLE_NON_X86}"
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd"
|
||||
|
||||
do_install:append() {
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', d)}; then
|
||||
#Fix up permissions on polkit rules.d to work with rpm4 constraints
|
||||
chmod 700 ${D}/${datadir}/polkit-1/rules.d
|
||||
chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
|
||||
fi
|
||||
}
|
||||
|
||||
FILES:${PN} += "${libdir}/fwupd-plugins-* \
|
||||
${libdir}/fwupd-${PV} \
|
||||
${systemd_unitdir} \
|
||||
${datadir}/fish \
|
||||
${datadir}/metainfo \
|
||||
${datadir}/icons \
|
||||
${datadir}/dbus-1 \
|
||||
${datadir}/polkit-1 \
|
||||
${nonarch_libdir}/modules-load.d"
|
||||
|
||||
FILES:${PN}-ptest += "${libexecdir}/installed-tests/ \
|
||||
${datadir}/installed-tests/"
|
||||
RDEPENDS:${PN}-ptest += "gnome-desktop-testing"
|
||||
78
meta-openembedded/meta-oe/recipes-bsp/irda-utils/irda-utils-0.9.18/init
Executable file
78
meta-openembedded/meta-oe/recipes-bsp/irda-utils/irda-utils-0.9.18/init
Executable file
@@ -0,0 +1,78 @@
|
||||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: irda
|
||||
# Required-Start: $network $remote_fs
|
||||
# Required-Stop: $network $remote_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Infrared port support
|
||||
### END INIT INFO
|
||||
|
||||
NAME="irattach"
|
||||
test -x "$IRDA_DAEMON" || IRDA_DAEMON=/usr/sbin/irattach
|
||||
test -z "$IRATTACH_PID" && IRATTACH_PID=/var/run/irattach.pid
|
||||
|
||||
# Source function library.
|
||||
. /etc/init.d/functions
|
||||
|
||||
module_id() {
|
||||
awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
|
||||
}
|
||||
|
||||
if [ ! -f /etc/sysconfig/irda ]; then
|
||||
case `module_id` in
|
||||
"HP iPAQ H2200" | "HP iPAQ HX4700" | "HTC Universal")
|
||||
IRDA=yes
|
||||
DEVICE=/dev/ttyS2
|
||||
DONGLE=
|
||||
DISCOVERY=
|
||||
;;
|
||||
*)
|
||||
IRDA=yes
|
||||
DEVICE=/dev/ttyS1
|
||||
DONGLE=
|
||||
DISCOVERY=
|
||||
;;
|
||||
esac
|
||||
else
|
||||
. /etc/sysconfig/irda
|
||||
fi
|
||||
|
||||
# Check that irda is up.
|
||||
[ ${IRDA} = "no" ] && exit 0
|
||||
|
||||
[ -f /usr/sbin/irattach ] || exit 0
|
||||
|
||||
ARGS=
|
||||
if [ $DONGLE ]; then
|
||||
ARGS="$ARGS -d $DONGLE"
|
||||
fi
|
||||
if [ "$DISCOVERY" = "yes" ];then
|
||||
ARGS="$ARGS -s"
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting IrDA: $NAME"
|
||||
start-stop-daemon --start --quiet --exec "$IRDA_DAEMON" ${DEVICE} ${ARGS} --pidfile "$IRATTACH_PID"
|
||||
sleep 1
|
||||
[ -f /var/run/irattach.pid ] && echo " done" || echo " fail"
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping IrDA: $NAME"
|
||||
start-stop-daemon --stop --quiet --exec "$IRDA_DAEMON" --pidfile "$IRATTACH_PID"
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
status irattach
|
||||
exit $?
|
||||
;;
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -0,0 +1,87 @@
|
||||
Obey LDFLAGS
|
||||
|
||||
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: irda-utils-0.9.18/findchip/Makefile
|
||||
===================================================================
|
||||
--- irda-utils-0.9.18.orig/findchip/Makefile
|
||||
+++ irda-utils-0.9.18/findchip/Makefile
|
||||
@@ -65,5 +65,5 @@ install: findchip
|
||||
|
||||
gfindchip: gfindchip.c
|
||||
$(prn_cc)
|
||||
- $(ECMD))$(CC) $(CFLAGS) `gtk-config --cflags` $< -o $@ `gtk-config --libs`
|
||||
+ $(ECMD)$(CC) $(CFLAGS) $(LDFLAGS) `gtk-config --cflags` $< -o $@ `gtk-config --libs`
|
||||
|
||||
Index: irda-utils-0.9.18/irattach/Makefile
|
||||
===================================================================
|
||||
--- irda-utils-0.9.18.orig/irattach/Makefile
|
||||
+++ irda-utils-0.9.18/irattach/Makefile
|
||||
@@ -49,13 +49,13 @@ all: $(TARGETS)
|
||||
|
||||
irattach: irattach.o util.o
|
||||
$(prn_cc_o)
|
||||
- $(ECMD)$(CC) $(CFLAGS) irattach.o util.o -o $@
|
||||
+ $(ECMD)$(CC) $(CFLAGS) $(LDFLAGS) irattach.o util.o -o $@
|
||||
|
||||
|
||||
|
||||
dongle_attach: dongle_attach.o
|
||||
$(prn_cc_o)
|
||||
- $(ECMD)$(CC) $(CFLAGS) dongle_attach.o -o $@
|
||||
+ $(ECMD)$(CC) $(CFLAGS) $(LDFLAGS) dongle_attach.o -o $@
|
||||
|
||||
|
||||
install: $(TARGETS)
|
||||
Index: irda-utils-0.9.18/irdadump/Makefile
|
||||
===================================================================
|
||||
--- irda-utils-0.9.18.orig/irdadump/Makefile
|
||||
+++ irda-utils-0.9.18/irdadump/Makefile
|
||||
@@ -40,7 +40,7 @@ lib_irdadump.a: $(LIBIRDADUMP_OBJS)
|
||||
|
||||
irdadump: $(IRDADUMP_OBJS) $(LIBIRDADUMP_TARGET)
|
||||
$(prn_cc_o)
|
||||
- $(ECMD)$(CC) $(CFLAGS) `pkg-config --libs glib-2.0` -o $(IRDADUMP_TARGET) $< $(LIBIRDADUMP_TARGET)
|
||||
+ $(ECMD)$(CC) $(CFLAGS) $(LDFLAGS) `pkg-config --libs glib-2.0` -o $(IRDADUMP_TARGET) $< $(LIBIRDADUMP_TARGET)
|
||||
|
||||
|
||||
.c.o:
|
||||
Index: irda-utils-0.9.18/irdaping/Makefile
|
||||
===================================================================
|
||||
--- irda-utils-0.9.18.orig/irdaping/Makefile
|
||||
+++ irda-utils-0.9.18/irdaping/Makefile
|
||||
@@ -56,7 +56,7 @@ all: $(TARGETS)
|
||||
|
||||
irdaping: $(OBJS)
|
||||
$(prn_cc_o)
|
||||
- $(ECMD)$(CC) $(CFLAGS) $(OBJS) -o $@
|
||||
+ $(ECMD)$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
|
||||
|
||||
|
||||
.c.o:
|
||||
Index: irda-utils-0.9.18/irnetd/Makefile
|
||||
===================================================================
|
||||
--- irda-utils-0.9.18.orig/irnetd/Makefile
|
||||
+++ irda-utils-0.9.18/irnetd/Makefile
|
||||
@@ -50,7 +50,7 @@ all: $(TARGETS)
|
||||
|
||||
irnetd: $(OBJS)
|
||||
$(prn_cc_o)
|
||||
- $(ECMD)$(CC) $(CFLAGS) $(OBJS) -o $@
|
||||
+ $(ECMD)$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
|
||||
|
||||
|
||||
install: irnetd
|
||||
Index: irda-utils-0.9.18/psion/Makefile
|
||||
===================================================================
|
||||
--- irda-utils-0.9.18.orig/psion/Makefile
|
||||
+++ irda-utils-0.9.18/psion/Makefile
|
||||
@@ -25,4 +25,4 @@ install: $(PSION_TARGETS)
|
||||
CFLAGS += -g -I../include -Wall -Wstrict-prototypes $(RPM_OPT_FLAGS)
|
||||
irpsion5:
|
||||
$(prn_cc_o)
|
||||
- $(ECMD)$(CC) $(CFLAGS) $(PSION_SRC) -o $@
|
||||
\ No newline at end of file
|
||||
+ $(ECMD)$(CC) $(CFLAGS) $(LDFLAGS) $(PSION_SRC) -o $@
|
||||
\ No newline at end of file
|
||||
@@ -0,0 +1,29 @@
|
||||
Replace use of <net/if_packet.h> with <linux/if_packet.h>.
|
||||
|
||||
kernel headers <linux/if_packet.h> already provides the
|
||||
needed definitions, moreover not all libc implementations
|
||||
provide if_packet.h e.g. musl
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: irda-utils-0.9.18/irdaping/irdaping.c
|
||||
===================================================================
|
||||
--- irda-utils-0.9.18.orig/irdaping/irdaping.c
|
||||
+++ irda-utils-0.9.18/irdaping/irdaping.c
|
||||
@@ -33,7 +33,6 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <net/if.h> /* For struct ifreq */
|
||||
-#include <net/if_packet.h> /* For struct sockaddr_pkt */
|
||||
#include <net/if_arp.h> /* For ARPHRD_IRDA */
|
||||
#include <netinet/if_ether.h> /* For ETH_P_ALL */
|
||||
#include <netinet/in.h> /* For htons */
|
||||
@@ -46,6 +45,7 @@
|
||||
#include <asm/byteorder.h> /* __cpu_to_le32 and co. */
|
||||
|
||||
#include <linux/types.h> /* For __u8 and co. */
|
||||
+#include <linux/if_packet.h> /* For struct sockaddr_pkt */
|
||||
#include <irda.h>
|
||||
|
||||
#ifndef AF_IRDA
|
||||
@@ -0,0 +1,64 @@
|
||||
SUMMARY = "Common files for IrDA"
|
||||
DESCRIPTION = "Provides common files needed to use IrDA. \
|
||||
IrDA allows communication over Infrared with other devices \
|
||||
such as phones and laptops."
|
||||
HOMEPAGE = "http://irda.sourceforge.net/"
|
||||
BUGTRACKER = "http://sourceforge.net/p/irda/bugs/"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://irdadump/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
file://smcinit/COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
|
||||
file://man/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
file://irdadump/irdadump.c;beginline=1;endline=24;md5=d78b9dce3cd78c2220250c9c7a2be178"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz \
|
||||
file://ldflags.patch \
|
||||
file://musl.patch \
|
||||
file://init"
|
||||
|
||||
SRC_URI[md5sum] = "84dc12aa4c3f61fccb8d8919bf4079bb"
|
||||
SRC_URI[sha256sum] = "61980551e46b2eaa9e17ad31cbc1a638074611fc33bff34163d10c7a67a9fdc6"
|
||||
|
||||
inherit update-rc.d
|
||||
|
||||
RRECOMMENDS:${PN} = "\
|
||||
kernel-module-pxaficp-ir \
|
||||
kernel-module-irda \
|
||||
kernel-module-ircomm \
|
||||
kernel-module-ircomm-tty \
|
||||
kernel-module-irlan \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'ppp', 'kernel-module-irnet', '',d)} \
|
||||
kernel-module-irport \
|
||||
kernel-module-irtty \
|
||||
kernel-module-irtty-sir \
|
||||
kernel-module-sir-dev \
|
||||
${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'kernel-module-ir-usb', '',d)} "
|
||||
|
||||
EXTRA_OEMAKE = "\
|
||||
'CC=${CC}' \
|
||||
'LD=${LD}' \
|
||||
'CFLAGS=${CFLAGS}' \
|
||||
'LDFLAGS=${LDFLAGS}' \
|
||||
'SYS_INCLUDES=' \
|
||||
'V=1' \
|
||||
"
|
||||
|
||||
INITSCRIPT_NAME = "irattach"
|
||||
INITSCRIPT_PARAMS = "defaults 20"
|
||||
|
||||
TARGETS ??= "irattach irdaping"
|
||||
do_compile () {
|
||||
for t in ${TARGETS}; do
|
||||
oe_runmake -C $t
|
||||
done
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${sbindir}
|
||||
for t in ${TARGETS}; do
|
||||
oe_runmake -C $t ROOT="${D}" install
|
||||
done
|
||||
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
Subject: [PATCH] Don't build with -Werror to fix compile error.
|
||||
|
||||
| 550 | _dump_sgpio_amd(&amd_reg->amd);
|
||||
| | ^~~~~~~~~~~~~
|
||||
| amd_sgpio.c: In function '_write_amd_register':
|
||||
| amd_sgpio.c:558:18: error: taking address of packed member of 'struct amd_register' may result in an unaligned pointer value [-Werror=address-of-packed-member]
|
||||
|
||||
Upstream-Status: Submitted
|
||||
https://github.com/intel/ledmon/pull/48/commits
|
||||
|
||||
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||
---
|
||||
configure.ac | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7bc20f8..7e01bd5 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -22,7 +22,6 @@ AX_AM_CFLAGS_ADD([-Werror=format-truncation=1])
|
||||
AX_AM_CFLAGS_ADD([-Werror=shift-negative-value])
|
||||
AX_AM_CFLAGS_ADD([-Werror=alloca])
|
||||
AX_AM_CFLAGS_ADD([-Werror=missing-field-initializers])
|
||||
-AX_AM_CFLAGS_ADD([-Werror])
|
||||
AX_AM_CFLAGS_ADD([-Werror=format-signedness])
|
||||
|
||||
AC_SUBST([AM_CFLAGS])
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
From 2ee8796db5019341b774bcb4f7d0944d89e1845b Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 9 Apr 2019 21:26:55 -0700
|
||||
Subject: [PATCH 2/2] include sys/select.h and sys/types.h
|
||||
|
||||
sys/select.h is needed to provide fd_set definition
|
||||
sys/types.h is needed for ssize_t
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/dellssd.c | 1 +
|
||||
src/utils.h | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/dellssd.c b/src/dellssd.c
|
||||
index 7b8d431..e97fe45 100644
|
||||
--- a/src/dellssd.c
|
||||
+++ b/src/dellssd.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/select.h>
|
||||
#include <linux/ipmi.h>
|
||||
|
||||
#if _HAVE_DMALLOC_H
|
||||
diff --git a/src/utils.h b/src/utils.h
|
||||
index 720447a..c106529 100644
|
||||
--- a/src/utils.h
|
||||
+++ b/src/utils.h
|
||||
@@ -21,6 +21,7 @@
|
||||
#define _UTILS_H_INCLUDED_
|
||||
|
||||
#include <getopt.h>
|
||||
+#include <sys/types.h>
|
||||
#include "config_file.h"
|
||||
#include "stdlib.h"
|
||||
#include "stdint.h"
|
||||
--
|
||||
2.21.0
|
||||
|
||||
41
meta-openembedded/meta-oe/recipes-bsp/ledmon/ledmon_git.bb
Normal file
41
meta-openembedded/meta-oe/recipes-bsp/ledmon/ledmon_git.bb
Normal file
@@ -0,0 +1,41 @@
|
||||
SUMMARY = "Intel(R) Enclosure LED Utilities"
|
||||
|
||||
DESCRIPTION = "The utilities are designed primarily to be used on storage servers \
|
||||
utilizing MD devices (aka Linux Software RAID) for RAID arrays.\
|
||||
"
|
||||
HOMEPAGE = "https://github.com/intel/ledmon"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
|
||||
"
|
||||
|
||||
DEPENDS = "sg3-utils udev"
|
||||
|
||||
inherit autotools systemd
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "ledmon.service"
|
||||
|
||||
# 0.93
|
||||
SRC_URI = "git://github.com/intel/ledmon;branch=master;protocol=https \
|
||||
file://0002-include-sys-select.h-and-sys-types.h.patch \
|
||||
file://0001-Don-t-build-with-Werror-to-fix-compile-error.patch \
|
||||
"
|
||||
|
||||
SRCREV = "1d72f9cb5c9163b2ecdf19709935720e65f5b90e"
|
||||
|
||||
COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
|
||||
COMPATIBLE_HOST:libc-musl = "null"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'"
|
||||
|
||||
# The ledmon sources include headers in ${S}/config to build but not in CFLAGS.
|
||||
# We need to add this include path in CFLAGS.
|
||||
CFLAGS += "-I${S}/config"
|
||||
|
||||
do_install:append() {
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0755 ${S}/systemd/ledmon.service ${D}${systemd_unitdir}/system
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
# fancontrol configuration file.
|
||||
# Place your device specific configuration in this file.
|
||||
@@ -0,0 +1,16 @@
|
||||
# configuration for hardware sensors monitoring daemon
|
||||
# in intervals use suffix "m" for minutes, "s" for seconds, "h" for hours
|
||||
# 0 means turning facility off
|
||||
|
||||
# interval between scanning alarms
|
||||
INTERVAL=1m
|
||||
|
||||
# interval between logging
|
||||
LOG_INTERVAL=20m
|
||||
|
||||
# interval between RRD logging
|
||||
# RRD_INTERVAL=1m
|
||||
|
||||
# RRD db location
|
||||
# RRD_LOGFILE=/var/log/sensors.rrd
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/rrdcgi
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>sensord</title>
|
||||
</head>
|
||||
<body>
|
||||
Generate a valid sensord.cgi script and install it in your BSP.
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,16 @@
|
||||
# Default sensord configuration file
|
||||
# Syntax: sensord {options} {chips}
|
||||
# -i, --interval <time> -- interval between scanning alarms (default 60s)
|
||||
# -l, --log-interval <time> -- interval between logging sensors (default 30m)
|
||||
# -t, --rrd-interval <time> -- interval between updating RRD file (default 5m)
|
||||
# -T, --rrd-no-average -- switch RRD in non-average mode
|
||||
# -r, --rrd-file <file> -- RRD file (default <none>)
|
||||
# -c, --config-file <file> -- configuration file
|
||||
# -p, --pid-file <file> -- PID file (default /var/run/sensord.pid)
|
||||
# -f, --syslog-facility <f> -- syslog facility to use (default local4)
|
||||
# -g, --rrd-cgi <img-dir> -- output an RRD CGI script and exit
|
||||
# -a, --load-average -- include load average in RRD file
|
||||
# -d, --debug -- display some debug information
|
||||
# -v, --version -- display version and exit
|
||||
# -h, --help -- display help and exit
|
||||
SENSORD_ARGS="-i60s -l30m -t1m -r/var/lib/sensord.rrd -a"
|
||||
@@ -0,0 +1,2 @@
|
||||
# sensors configuration file.
|
||||
# Place your device specific configuration in this file.
|
||||
@@ -0,0 +1,68 @@
|
||||
SUMMARY = "lm_sensors configuration files"
|
||||
DESCRIPTION = "Hardware health monitoring configuration files"
|
||||
HOMEPAGE = "http://www.lm-sensors.org/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI = "file://fancontrol \
|
||||
file://sensord.cgi \
|
||||
file://sensord.conf \
|
||||
file://sensors.conf \
|
||||
file://sensord \
|
||||
"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
PACKAGECONFIG ??= "sensord"
|
||||
PACKAGECONFIG[sensord] = ",,"
|
||||
|
||||
RDEPENDS:${PN}-dev = ""
|
||||
|
||||
do_install() {
|
||||
# Install fancontrol configuration file
|
||||
install -d ${D}${sysconfdir}/sysconfig
|
||||
install -m 0644 ${WORKDIR}/fancontrol ${D}${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/sensord ${D}${sysconfdir}/sysconfig
|
||||
# Install libsensors configuration file
|
||||
install -d ${D}${sysconfdir}/sensors.d
|
||||
install -m 0644 ${WORKDIR}/sensors.conf ${D}${sysconfdir}/sensors.d
|
||||
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'sensord', 'true', 'false', d)}; then
|
||||
# Install sensord configuration file
|
||||
install -m 0644 ${WORKDIR}/sensord.conf ${D}${sysconfdir}
|
||||
|
||||
# Install sensord.cgi script and create world-writable
|
||||
# web-accessible sensord directory
|
||||
install -d ${D}/www/pages/cgi-bin
|
||||
install -m 0755 ${WORKDIR}/sensord.cgi ${D}/www/pages/cgi-bin
|
||||
install -d -m a=rwxs ${D}/www/pages/sensord
|
||||
fi
|
||||
}
|
||||
|
||||
# libsensors configuration
|
||||
PACKAGES =+ "${PN}-libsensors"
|
||||
|
||||
# sensord logging daemon configuration
|
||||
PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord', '', d)}"
|
||||
|
||||
# fancontrol script configuration
|
||||
PACKAGES =+ "${PN}-fancontrol"
|
||||
|
||||
# sensord web cgi support
|
||||
PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-cgi', '', d)}"
|
||||
RRECOMMENDS:${PN}-cgi = "lighttpd lighttpd-module-cgi"
|
||||
RDEPENDS:${PN}-cgi = "${PN}-sensord rrdtool"
|
||||
FILES:${PN}-cgi = "/www/*"
|
||||
|
||||
# libsensors configuration file
|
||||
FILES:${PN}-libsensors = "${sysconfdir}/sensors.d/sensors.conf"
|
||||
|
||||
# sensord logging daemon configuration files
|
||||
FILES:${PN}-sensord = "\
|
||||
${sysconfdir}/sensord.conf \
|
||||
${sysconfdir}/sysconfig/sensord \
|
||||
"
|
||||
|
||||
# fancontrol script configuration file
|
||||
FILES:${PN}-fancontrol = "${sysconfdir}/fancontrol"
|
||||
@@ -0,0 +1,44 @@
|
||||
From 25f4f8793730ef3d170f1f2bd729a82fd61a4784 Mon Sep 17 00:00:00 2001
|
||||
From: puneetse <22071208+puneetse@users.noreply.github.com>
|
||||
Date: Wed, 11 Mar 2020 09:36:51 -0700
|
||||
Subject: [PATCH] Change PIDFile path from /var/run to /run
|
||||
|
||||
/var/run is considered a legacy directory by systemd 239+ and having it in unit files causes a warning to be emitted to the journal.
|
||||
|
||||
Upstream-Status: Backport [25f4f8793730ef3d170f1f2bd729a82fd61a4784]
|
||||
|
||||
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
||||
---
|
||||
prog/init/fancontrol.service | 2 +-
|
||||
prog/init/sensord.service | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/prog/init/fancontrol.service b/prog/init/fancontrol.service
|
||||
index 3ac1ed02..43293141 100644
|
||||
--- a/prog/init/fancontrol.service
|
||||
+++ b/prog/init/fancontrol.service
|
||||
@@ -5,7 +5,7 @@ After=lm_sensors.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
-PIDFile=/var/run/fancontrol.pid
|
||||
+PIDFile=/run/fancontrol.pid
|
||||
ExecStart=/usr/sbin/fancontrol
|
||||
|
||||
[Install]
|
||||
diff --git a/prog/init/sensord.service b/prog/init/sensord.service
|
||||
index 2448beeb..af2f0ae9 100644
|
||||
--- a/prog/init/sensord.service
|
||||
+++ b/prog/init/sensord.service
|
||||
@@ -5,7 +5,7 @@ After=lm_sensors.service
|
||||
[Service]
|
||||
EnvironmentFile=/etc/sysconfig/sensord
|
||||
Type=forking
|
||||
-PIDFile=/var/run/sensord.pid
|
||||
+PIDFile=/run/sensord.pid
|
||||
ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
|
||||
|
||||
[Install]
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: fancontrol
|
||||
# Required-Start: $local_fs
|
||||
# Should-Start:
|
||||
# Required-Stop: $local_fs
|
||||
# Should-Stop:
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: fancontrol initscript
|
||||
# Description: Starts and controls the fancontrol daemon
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
|
||||
DESC="fan control daemon"
|
||||
NAME="fancontrol"
|
||||
FANCONTROL=`which $NAME`
|
||||
PIDFILE="/var/run/fancontrol.pid"
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$FANCONTROL" ] || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting $DESC: $NAME... "
|
||||
start-stop-daemon -S -p $PIDFILE -b -x $FANCONTROL
|
||||
echo "done."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping $DESC: $NAME... "
|
||||
start-stop-daemon -K -p $PIDFILE
|
||||
echo "done."
|
||||
;;
|
||||
restart)
|
||||
echo "Restarting $DESC: $NAME... "
|
||||
$0 stop
|
||||
$0 start
|
||||
echo "done."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,49 @@
|
||||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: sensord
|
||||
# Required-Start: $local_fs
|
||||
# Should-Start:
|
||||
# Required-Stop: $local_fs
|
||||
# Should-Stop:
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: sensord initscript
|
||||
# Description: Starts the sensord logging daemon
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
|
||||
DESC="sensors logging daemon"
|
||||
NAME="sensord"
|
||||
SENSORD=`which $NAME`
|
||||
|
||||
. /etc/init.d/functions || exit 1
|
||||
. /etc/sensord.conf || exit 1
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$SENSORD" ] || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting $DESC: $NAME... "
|
||||
start-stop-daemon -S -x $SENSORD -- $SENSORD_ARGS
|
||||
echo "done."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping $DESC: $NAME... "
|
||||
start-stop-daemon -K -x $SENSORD
|
||||
echo "done."
|
||||
;;
|
||||
restart)
|
||||
echo "Restarting $DESC: $NAME... "
|
||||
$0 stop
|
||||
$0 start
|
||||
echo "done."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,168 @@
|
||||
SUMMARY = "Hardware health monitoring applications"
|
||||
HOMEPAGE = "https://hwmon.wiki.kernel.org/"
|
||||
LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
|
||||
file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
DEPENDS = " \
|
||||
bison-native \
|
||||
flex-native \
|
||||
virtual/libiconv \
|
||||
"
|
||||
|
||||
SRC_URI = "git://github.com/lm-sensors/lm-sensors.git;protocol=https;branch=master \
|
||||
file://fancontrol.init \
|
||||
file://sensord.init \
|
||||
file://0001-Change-PIDFile-path-from-var-run-to-run.patch \
|
||||
"
|
||||
SRCREV = "1667b850a1ce38151dae17156276f981be6fb557"
|
||||
|
||||
inherit update-rc.d systemd
|
||||
|
||||
RDEPENDS:${PN}-dev = ""
|
||||
|
||||
PACKAGECONFIG ??= "sensord"
|
||||
PACKAGECONFIG[sensord] = "sensord,,rrdtool"
|
||||
|
||||
INITSCRIPT_PACKAGES = "\
|
||||
${PN}-fancontrol \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord', '', d)} \
|
||||
"
|
||||
INITSCRIPT_NAME:${PN}-fancontrol = "fancontrol"
|
||||
INITSCRIPT_NAME:${PN}-sensord = "sensord"
|
||||
INITSCRIPT_PARAMS:${PN}-fancontrol = "defaults 66"
|
||||
INITSCRIPT_PARAMS:${PN}-sensord = "defaults 67"
|
||||
|
||||
SYSTEMD_PACKAGES = "\
|
||||
${PN} \
|
||||
${PN}-fancontrol \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord', '', d)} \
|
||||
"
|
||||
SYSTEMD_SERVICE:${PN} = "lm_sensors.service"
|
||||
SYSTEMD_SERVICE:${PN}-fancontrol = "fancontrol.service"
|
||||
SYSTEMD_SERVICE:${PN}-sensord = "sensord.service"
|
||||
SYSTEMD_AUTO_ENABLE = "disable"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE = 'EXLDFLAGS="${LDFLAGS}" \
|
||||
MACHINE=${TARGET_ARCH} PREFIX=${prefix} MANDIR=${mandir} \
|
||||
LIBDIR=${libdir} \
|
||||
CC="${CC}" AR="${AR}"'
|
||||
|
||||
do_compile() {
|
||||
sed -i -e 's:^# \(PROG_EXTRA\):\1:' ${S}/Makefile
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' ${S}/Makefile
|
||||
sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' \
|
||||
${S}/lib/Module.mk
|
||||
oe_runmake user PROG_EXTRA="sensors ${PACKAGECONFIG_CONFARGS}"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake user_install DESTDIR=${D}
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'sensord', 'true', 'false', d)}; then
|
||||
install -m 0755 ${S}/prog/sensord/sensord ${D}${sbindir}
|
||||
install -m 0644 ${S}/prog/sensord/sensord.8 ${D}${mandir}/man8
|
||||
fi
|
||||
|
||||
# Install directory
|
||||
install -d ${D}${INIT_D_DIR}
|
||||
|
||||
# Install fancontrol init script
|
||||
install -m 0755 ${WORKDIR}/fancontrol.init ${D}${INIT_D_DIR}/fancontrol
|
||||
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'sensord', 'true', 'false', d)}; then
|
||||
# Install sensord init script
|
||||
install -m 0755 ${WORKDIR}/sensord.init ${D}${INIT_D_DIR}/sensord
|
||||
fi
|
||||
|
||||
# Insall sensord service script
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${S}/prog/init/*.service ${D}${systemd_unitdir}/system
|
||||
if ! ${@bb.utils.contains('PACKAGECONFIG', 'sensord', 'true', 'false', d)}; then
|
||||
rm ${D}${systemd_system_unitdir}/sensord.service
|
||||
fi
|
||||
}
|
||||
|
||||
RPROVIDES:${PN}-dbg += "${PN}-libsensors-dbg ${PN}-sensors-dbg ${PN}-sensord-dbg ${PN}-isatools-dbg"
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
RDEPENDS:${PN} += " \
|
||||
${PN}-libsensors \
|
||||
${PN}-sensors \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord', '', d)} \
|
||||
${PN}-fancontrol \
|
||||
${PN}-sensorsdetect \
|
||||
${PN}-sensorsconfconvert \
|
||||
${PN}-pwmconfig \
|
||||
${@bb.utils.contains('MACHINE_FEATURES', 'x86', '${PN}-isatools', '', d)} \
|
||||
"
|
||||
|
||||
# libsensors packages
|
||||
PACKAGES =+ "${PN}-libsensors ${PN}-libsensors-dev ${PN}-libsensors-staticdev ${PN}-libsensors-doc"
|
||||
|
||||
# sensors command packages
|
||||
PACKAGES =+ "${PN}-sensors ${PN}-sensors-doc"
|
||||
|
||||
# sensord logging daemon
|
||||
PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord ${PN}-sensord-doc', '', d)}"
|
||||
|
||||
# fancontrol script
|
||||
PACKAGES =+ "${PN}-fancontrol ${PN}-fancontrol-doc"
|
||||
|
||||
# sensors-detect script
|
||||
PACKAGES =+ "${PN}-sensorsdetect ${PN}-sensorsdetect-doc"
|
||||
|
||||
# sensors-conf-convert script
|
||||
PACKAGES =+ "${PN}-sensorsconfconvert ${PN}-sensorsconfconvert-doc"
|
||||
|
||||
# pwmconfig script
|
||||
PACKAGES =+ "${PN}-pwmconfig ${PN}-pwmconfig-doc"
|
||||
|
||||
# isadump and isaset helper program
|
||||
PACKAGES =+ "${PN}-isatools ${PN}-isatools-doc"
|
||||
|
||||
|
||||
# libsensors files
|
||||
FILES:${PN}-libsensors = "${libdir}/libsensors.so.* ${sysconfdir}/sensors3.conf ${sysconfdir}/sensors.d"
|
||||
FILES:${PN}-libsensors-dev = "${libdir}/libsensors.so ${includedir}"
|
||||
FILES:${PN}-libsensors-staticdev = "${libdir}/libsensors.a"
|
||||
FILES:${PN}-libsensors-doc = "${mandir}/man3"
|
||||
RRECOMMENDS:${PN}-libsensors = "lmsensors-config-libsensors"
|
||||
|
||||
# sensors command files
|
||||
FILES:${PN}-sensors = "${bindir}/sensors"
|
||||
FILES:${PN}-sensors-doc = "${mandir}/man1 ${mandir}/man5"
|
||||
RDEPENDS:${PN}-sensors = "${PN}-libsensors"
|
||||
|
||||
# sensord logging daemon
|
||||
FILES:${PN}-sensord = "${sbindir}/sensord ${INIT_D_DIR}/sensord ${systemd_system_unitdir}/sensord.service"
|
||||
FILES:${PN}-sensord-doc = "${mandir}/man8/sensord.8"
|
||||
RDEPENDS:${PN}-sensord = "${PN}-sensors rrdtool"
|
||||
RRECOMMENDS:${PN}-sensord = "lmsensors-config-sensord"
|
||||
|
||||
# fancontrol script files
|
||||
FILES:${PN}-fancontrol = "${sbindir}/fancontrol ${INIT_D_DIR}/fancontrol"
|
||||
FILES:${PN}-fancontrol-doc = "${mandir}/man8/fancontrol.8"
|
||||
RDEPENDS:${PN}-fancontrol = "bash"
|
||||
RRECOMMENDS:${PN}-fancontrol = "lmsensors-config-fancontrol"
|
||||
|
||||
# sensors-detect script files
|
||||
FILES:${PN}-sensorsdetect = "${sbindir}/sensors-detect"
|
||||
FILES:${PN}-sensorsdetect-doc = "${mandir}/man8/sensors-detect.8"
|
||||
RDEPENDS:${PN}-sensorsdetect = "${PN}-sensors perl perl-modules"
|
||||
|
||||
# sensors-conf-convert script files
|
||||
FILES:${PN}-sensorsconfconvert = "${bindir}/sensors-conf-convert"
|
||||
FILES:${PN}-sensorsconfconvert-doc = "${mandir}/man8/sensors-conf-convert.8"
|
||||
RDEPENDS:${PN}-sensorsconfconvert = "${PN}-sensors perl perl-modules"
|
||||
|
||||
# pwmconfig script files
|
||||
FILES:${PN}-pwmconfig = "${sbindir}/pwmconfig"
|
||||
FILES:${PN}-pwmconfig-doc = "${mandir}/man8/pwmconfig.8"
|
||||
RDEPENDS:${PN}-pwmconfig = "${PN}-fancontrol bash"
|
||||
|
||||
# isadump and isaset helper program files
|
||||
FILES:${PN}-isatools = "${sbindir}/isa*"
|
||||
FILES:${PN}-isatools-doc = "${mandir}/man8/isa*"
|
||||
13
meta-openembedded/meta-oe/recipes-bsp/lsscsi/lsscsi_0.32.bb
Normal file
13
meta-openembedded/meta-oe/recipes-bsp/lsscsi/lsscsi_0.32.bb
Normal file
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "The lsscsi command lists information about SCSI devices in Linux"
|
||||
HOMEPAGE = "http://sg.danny.cz/scsi/lsscsi.html"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
SECTION = "base"
|
||||
LIC_FILES_CHKSUM="file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
|
||||
|
||||
SRC_URI = "http://sg.danny.cz/scsi/${BP}.tgz"
|
||||
|
||||
SRC_URI[sha256sum] = "0a800e9e94dca2ab702d65d72777ae8cae078e3d74d0bcbed64ba0849e8029a1"
|
||||
|
||||
inherit autotools
|
||||
|
||||
S = "${WORKDIR}/lsscsi-${PV}"
|
||||
@@ -0,0 +1,33 @@
|
||||
SUMMARY = "NVMe management command line interface"
|
||||
AUTHOR = "Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com>"
|
||||
HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
|
||||
SECTION = "console/utils"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
|
||||
DEPENDS = "util-linux"
|
||||
PV .= "+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https"
|
||||
SRCREV = "f0e9569df9289d6ee55ba2c23615cc7c73a9b088"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit bash-completion systemd
|
||||
|
||||
do_install() {
|
||||
oe_runmake install-spec DESTDIR=${D} PREFIX=${prefix} \
|
||||
UDEVDIR=${nonarch_base_libdir}/udev SYSTEMDDIR=${systemd_unitdir}
|
||||
}
|
||||
|
||||
pkg_postinst_ontarget:${PN}() {
|
||||
${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
|
||||
${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
|
||||
|
||||
FILES:${PN} += "${systemd_system_unitdir}"
|
||||
FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d"
|
||||
FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions"
|
||||
|
||||
RDEPENDS:${PN} = "util-linux-uuidgen"
|
||||
@@ -0,0 +1,21 @@
|
||||
Include sys/types.h for u_long definition
|
||||
|
||||
Fix errors like
|
||||
In file included from src/lex_config.l:34:0:
|
||||
src/yacc_config.y:45:5: error: unknown type name 'u_long'
|
||||
u_long num;
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Pending
|
||||
Index: pcmciautils-018/src/lex_config.l
|
||||
===================================================================
|
||||
--- pcmciautils-018.orig/src/lex_config.l
|
||||
+++ pcmciautils-018/src/lex_config.l
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <syslog.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
#ifdef HAS_WORDEXP
|
||||
#include <wordexp.h>
|
||||
@@ -0,0 +1,101 @@
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Hardcoded paths are bad...
|
||||
This lets us use the install from OE's native sysroot
|
||||
rebase the patch to 018, removing hardcoded path for true
|
||||
as well. Removing of -D in install invocation is a little
|
||||
questionable, is it some GNU extention?
|
||||
|
||||
-Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
Index: pcmciautils-018/Makefile
|
||||
===================================================================
|
||||
--- pcmciautils-018.orig/Makefile
|
||||
+++ pcmciautils-018/Makefile
|
||||
@@ -76,7 +76,7 @@ sbindir = ${exec_prefix}/sbin
|
||||
mandir = ${prefix}/usr/share/man
|
||||
udevdir = ${prefix}/lib/udev
|
||||
|
||||
-INSTALL = /usr/bin/install -c
|
||||
+INSTALL = install -c
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
||||
@@ -180,7 +180,7 @@ endif
|
||||
# if DEBUG is enabled, then we do not strip or optimize
|
||||
ifeq ($(strip $(DEBUG)),true)
|
||||
CFLAGS += -O1 -g -DDEBUG -D_GNU_SOURCE
|
||||
- STRIPCMD = /bin/true -Since_we_are_debugging
|
||||
+ STRIPCMD = true -Since_we_are_debugging
|
||||
else
|
||||
CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
|
||||
STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
|
||||
@@ -273,30 +273,32 @@ clean:
|
||||
|
||||
install-hotplug:
|
||||
$(INSTALL) -d $(DESTDIR)$(hotplugdir)
|
||||
- $(INSTALL_PROGRAM) -D hotplug/pcmcia.agent $(DESTDIR)$(hotplugdir)/pcmcia.agent
|
||||
- $(INSTALL_PROGRAM) -D hotplug/pcmcia.rc $(DESTDIR)$(hotplugdir)/pcmcia.rc
|
||||
+ $(INSTALL_PROGRAM) hotplug/pcmcia.agent $(DESTDIR)$(hotplugdir)/pcmcia.agent
|
||||
+ $(INSTALL_PROGRAM) hotplug/pcmcia.rc $(DESTDIR)$(hotplugdir)/pcmcia.rc
|
||||
|
||||
uninstall-hotplug:
|
||||
- rm -f $(DESTDIR)$(hotplugdir)/pcmcia.agent $(DESTDIR)$(hotplugdir)/pcmcia.rc
|
||||
|
||||
install-socket-hotplug:
|
||||
- $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent
|
||||
- $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc
|
||||
+ $(INSTALL_PROGRAM) hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent
|
||||
+ $(INSTALL_PROGRAM) hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc
|
||||
|
||||
uninstall-socket-hotplug:
|
||||
- rm -f $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc
|
||||
|
||||
install-socket-tools:
|
||||
- $(INSTALL_PROGRAM) -D $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP)
|
||||
+ $(INSTALL) -d $(DESTDIR)$(udevhelperdir)
|
||||
+ $(INSTALL_PROGRAM) $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP)
|
||||
|
||||
uninstall-socket-tools:
|
||||
- rm -f $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP)
|
||||
|
||||
install-tools:
|
||||
$(INSTALL) -d $(DESTDIR)$(sbindir)
|
||||
- $(INSTALL_PROGRAM) -D $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL)
|
||||
+ $(INSTALL) -d $(DESTDIR)$(udevhelperdir)
|
||||
+ $(INSTALL_PROGRAM) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL)
|
||||
$(SYMLINK) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA)
|
||||
- $(INSTALL_PROGRAM) -D $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_CHECK_BROKEN_CIS)
|
||||
+ $(INSTALL_PROGRAM) $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_CHECK_BROKEN_CIS)
|
||||
|
||||
uninstall-tools:
|
||||
- rm -f $(DESTDIR)$(sbindir)/$(PCCARDCTL)
|
||||
@@ -305,22 +307,24 @@ uninstall-tools:
|
||||
|
||||
install-config:
|
||||
$(INSTALL) -d $(DESTDIR)$(pcmciaconfdir)
|
||||
- $(INSTALL_DATA) -D config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts
|
||||
+ $(INSTALL_DATA) config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts
|
||||
if [ -f config/config.opts.$(ARCH) ]; then \
|
||||
- $(INSTALL_DATA) -D config/config.opts.$(ARCH) $(DESTDIR)$(pcmciaconfdir)/config.opts; \
|
||||
+ $(INSTALL_DATA) config/config.opts.$(ARCH) $(DESTDIR)$(pcmciaconfdir)/config.opts; \
|
||||
fi
|
||||
|
||||
uninstall-config:
|
||||
# - rm -f $(DESTDIR)$(pcmciaconfdir)/config.opts
|
||||
|
||||
install-udev:
|
||||
- $(INSTALL_DATA) -D $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules
|
||||
+ $(INSTALL) -d $(DESTDIR)$(udevrulesdir)
|
||||
+ $(INSTALL_DATA) $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules
|
||||
|
||||
uninstall-udev:
|
||||
- rm -f $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules
|
||||
|
||||
install-man:
|
||||
- $(INSTALL_DATA) -D man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8
|
||||
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man8
|
||||
+ $(INSTALL_DATA) man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8
|
||||
$(SYMLINK) pccardctl.8 $(DESTDIR)$(mandir)/man8/lspcmcia.8
|
||||
|
||||
uninstall-man:
|
||||
@@ -0,0 +1,29 @@
|
||||
"make src/lex_config.o"
|
||||
|
||||
results in:
|
||||
|
||||
src/lex_config.l:35:25: fatal error: yacc_config.h: No such file or directory
|
||||
|
||||
so add missing dependency through a missing rule. Also remove a rule which
|
||||
doesn't appear to do anything.
|
||||
|
||||
RP
|
||||
2016/1/31
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: pcmciautils-018/Makefile
|
||||
===================================================================
|
||||
--- pcmciautils-018.orig/Makefile
|
||||
+++ pcmciautils-018/Makefile
|
||||
@@ -246,8 +246,8 @@ $(PCMCIA_SOCKET_STARTUP): $(LIBC) src/st
|
||||
$(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) src/startup.o src/yacc_config.o src/lex_config.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
|
||||
$(QUIET) $(STRIPCMD) $@
|
||||
|
||||
-yacc_config.o lex_config.o: %.o: %.c
|
||||
- $(CC) -c -MD -O -pipe $(CPPFLAGS) $<
|
||||
+src/lex_config.o : src/lex_config.c src/yacc_config.h ccdv
|
||||
+ $(QUIET) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
|
||||
|
||||
debugtools: ccdv $(CBDUMP) $(CISDUMP)
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
SUMMARY = "Linux kernel userland utilities for the PCMCIA subsystem"
|
||||
HOMEPAGE = "https://www.kernel.org/pub/linux/utils/kernel/pcmcia/"
|
||||
SECTION = "kernel/userland"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
|
||||
DEPENDS = "udev sysfsutils flex-native bison-native"
|
||||
RDEPENDS:${PN} = "udev module-init-tools"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/pcmcia/${BP}.tar.xz \
|
||||
file://makefile_fix.patch \
|
||||
file://makefile_race.patch \
|
||||
file://lex_sys_types.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "885431c3cefb76ffdad8cb985134e996"
|
||||
SRC_URI[sha256sum] = "57c27be8f04ef4d535bcfa988567316cc57659fe69068327486dab53791e6558"
|
||||
|
||||
inherit pkgconfig
|
||||
|
||||
export HOSTCC = "${BUILD_CC}"
|
||||
export etcdir = "${sysconfdir}"
|
||||
export sbindir = "${base_sbindir}"
|
||||
export pcmciaconfdir = "${sysconfdir}/pcmcia"
|
||||
export udevdir = "`pkg-config --variable=udevdir udev`"
|
||||
export udevrulesdir = "`pkg-config --variable=udevdir udev`/rules.d"
|
||||
export UDEV = "1"
|
||||
LD = "${CC}"
|
||||
CFLAGS =+ "-I${S}/src"
|
||||
CFLAGS =+ "-DPCMCIAUTILS_VERSION=\\"${PV}\\""
|
||||
|
||||
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex'"
|
||||
|
||||
do_install () {
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
}
|
||||
|
||||
CONFFILES:${PN} += "${sysconfdir}/pcmcia/config.opts"
|
||||
@@ -0,0 +1,2 @@
|
||||
This is a blank COPYING file, and should be filled in by original author in future.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
8313 4 -8526 7 8334 -82604 65536
|
||||
@@ -0,0 +1 @@
|
||||
8313 4 -8526 7 8334 -82604 65536
|
||||
@@ -0,0 +1 @@
|
||||
8313 4 -8526 7 8334 -82604 65536
|
||||
@@ -0,0 +1 @@
|
||||
8313 4 -8526 7 8334 -82604 65536
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
1280 0 1002 0 960 328 65536
|
||||
@@ -0,0 +1 @@
|
||||
1280 0 1002 0 960 328 65536
|
||||
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "Touchscreen calibration data"
|
||||
SECTION = "base"
|
||||
PR = "r11"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4b5fcfc87fb615860d398b5e38685edf"
|
||||
|
||||
SRC_URI = "file://pointercal \
|
||||
file://COPYING"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
# Only install file if it has a contents
|
||||
if [ -s ${S}/pointercal ]; then
|
||||
install -d ${D}${sysconfdir}/
|
||||
install -m 0644 ${S}/pointercal ${D}${sysconfdir}/
|
||||
fi
|
||||
}
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Reference in New Issue
Block a user