package/rhash: fix build with uclinux
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 14 Jan 2021 07:48:03 +0000 (08:48 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 14 Jan 2021 21:00:01 +0000 (22:00 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/598ca65cf0c7ecf9ceaecb75868b656570ae00d2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/rhash/0002-configure-add-uclinux-target.patch [new file with mode: 0644]

diff --git a/package/rhash/0002-configure-add-uclinux-target.patch b/package/rhash/0002-configure-add-uclinux-target.patch
new file mode 100644 (file)
index 0000000..ca4a556
--- /dev/null
@@ -0,0 +1,36 @@
+From 683f6875313cab9643402bb1710ebabb76e7c018 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Thu, 14 Jan 2021 08:37:06 +0100
+Subject: [PATCH] configure: add uclinux target
+
+Fix the following build failure with
+--target=arm-buildroot-uclinux-uclibcgnueabi:
+
+Checking for target OS ... UNKNOWN
+
+Error: Unknown target OS, please specify the --target option
+
+Fixes:
+ - http://autobuild.buildroot.org/results/598ca65cf0c7ecf9ceaecb75868b656570ae00d2
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure b/configure
+index c8e1ea7..aae4dce 100755
+--- a/configure
++++ b/configure
+@@ -426,7 +426,7 @@ else
+     component=$1
+     part=$(echo $BUILD_TARGET | cut -d '-' -f $component)
+     case "$(echo $part | tr '[A-Z]' '[a-z]')" in
+-      linux) TARGET_OS=Linux ;;
++      linux|uclinux) TARGET_OS=Linux ;;
+       freebsd*) TARGET_OS=FreeBSD ;;
+       gnu/kfreebsd) TARGET_OS=FreeBSD ;;
+       netbsd) TARGET_OS=NetBSD ;;
+-- 
+2.29.2
+