hwinfo: fix compilation with ARC
authorRosen Penev <redacted>
Tue, 20 Apr 2021 23:06:21 +0000 (16:06 -0700)
committerRosen Penev <redacted>
Sat, 29 May 2021 08:19:26 +0000 (01:19 -0700)
Added a small patch to fix compilation.

Renamed patch files to have a .patch suffix. Makes them easier to read
with vim and probably IDEs.

Remove UCLIBC depend since it's no longer present.

Signed-off-by: Rosen Penev <redacted>
utils/hwinfo/Makefile
utils/hwinfo/patches/010-hardcoding-version.patch [moved from utils/hwinfo/patches/0-hardcoding-version with 100% similarity]
utils/hwinfo/patches/020-remove_libx8emu_dependency.patch [moved from utils/hwinfo/patches/1-remove_libx8emu_dependency with 100% similarity]
utils/hwinfo/patches/030-enable-hw-ids-and-disable-generation-of-tiny-hwinfo-headers.patch [moved from utils/hwinfo/patches/2-enable-hw-ids-and-disable-generation-of-tiny-hwinfo-headers with 100% similarity]
utils/hwinfo/patches/040-assorted-Makefile-butchery.patch [moved from utils/hwinfo/patches/3-assorted-Makefile-butchery with 100% similarity]
utils/hwinfo/patches/050-arc.patch [new file with mode: 0644]

index 4443ad586c19a832d4522c5e0c26d57c21b6caab..03871f90ce0b1be5c13d8bdaa4cdd6be47f3cd5b 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=hwinfo
 PKG_VERSION:=21.71
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/openSUSE/hwinfo/tar.gz/$(PKG_VERSION)?
@@ -66,7 +66,7 @@ define Package/hwinfo
   CATEGORY:=Utilities
   TITLE:=probe the hardware present in the system
   URL:=https://github.com/openSUSE/hwinfo
-  DEPENDS:= +libuuid @!USE_UCLIBC
+  DEPENDS:= +libuuid
 endef
 
 define Package/hwinfo/description
diff --git a/utils/hwinfo/patches/050-arc.patch b/utils/hwinfo/patches/050-arc.patch
new file mode 100644 (file)
index 0000000..07010c8
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/src/hd/hd.c
++++ b/src/hd/hd.c
+@@ -156,6 +156,10 @@
+ #define HD_ARCH "riscv"
+ #endif
++#ifdef __arc__
++#define HD_ARCH "arc"
++#endif
++
+ typedef struct disk_s {
+   struct disk_s *next;
+   unsigned crc;
git clone https://git.99rst.org/PROJECT