mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
package/dhrystone: cleanup patch stack
dhrystone is basically a dead project, so there is no Git repo
available anywhere, no new release, nothing.
Despite that, let's reformat the patches with "git format-patch", keep
the original authorship but add my SoB since I'm reintroducing the
patches, and indicate the Upstream: status.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 95013777cf)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
4170afa998
commit
4d68f0d040
@@ -513,11 +513,6 @@ package/dhcp/S80dhcp-server Shellcheck lib_sysv.Variables
|
|||||||
package/dhcp/dhclient-script Shellcheck lib_shellscript.TrailingSpace
|
package/dhcp/dhclient-script Shellcheck lib_shellscript.TrailingSpace
|
||||||
package/dhcpcd/S41dhcpcd lib_sysv.Indent lib_sysv.Variables
|
package/dhcpcd/S41dhcpcd lib_sysv.Indent lib_sysv.Variables
|
||||||
package/dhcpdump/0001-use-non-bsd-structures.patch lib_patch.Upstream
|
package/dhcpdump/0001-use-non-bsd-structures.patch lib_patch.Upstream
|
||||||
package/dhrystone/0001-cmdline-nruns.patch lib_patch.Sob lib_patch.Upstream
|
|
||||||
package/dhrystone/0002-HZ.patch lib_patch.Sob lib_patch.Upstream
|
|
||||||
package/dhrystone/0003-exit.patch lib_patch.Sob lib_patch.Upstream
|
|
||||||
package/dhrystone/0004-headers.patch lib_patch.Sob lib_patch.Upstream
|
|
||||||
package/dhrystone/0005-prototypes.patch lib_patch.Sob lib_patch.Upstream
|
|
||||||
package/dht/0001-cmake.patch lib_patch.Upstream
|
package/dht/0001-cmake.patch lib_patch.Upstream
|
||||||
package/dillo/0001-usr-local-include.patch lib_patch.Upstream
|
package/dillo/0001-usr-local-include.patch lib_patch.Upstream
|
||||||
package/dillo/0002-Fix-openssl-detection.patch lib_patch.Upstream
|
package/dillo/0002-Fix-openssl-detection.patch lib_patch.Upstream
|
||||||
|
|||||||
@@ -1,10 +1,19 @@
|
|||||||
let people specify the number of runs on the command line
|
From 16d84fa7ecea8102680c9610d4186c4f54936b07 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vivi Li <vivi.li@analog.com>
|
||||||
|
Date: Mon, 15 Jul 2024 11:07:11 +0200
|
||||||
|
Subject: [PATCH] let people specify the number of runs on the command line
|
||||||
|
|
||||||
Patch by Vivi Li <vivi.li@analog.com>
|
Upstream: dead
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
|
---
|
||||||
|
dhry_1.c | 25 ++++++++++++++++++-------
|
||||||
|
1 file changed, 18 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/dhry_1.c b/dhry_1.c
|
||||||
|
index 7ab02a8..97bd30f 100644
|
||||||
--- a/dhry_1.c
|
--- a/dhry_1.c
|
||||||
+++ b/dhry_1.c
|
+++ b/dhry_1.c
|
||||||
@@ -66,7 +70,7 @@
|
@@ -66,7 +66,7 @@ float Microseconds,
|
||||||
/* end of variables for time measurement */
|
/* end of variables for time measurement */
|
||||||
|
|
||||||
|
|
||||||
@@ -13,7 +22,7 @@ Patch by Vivi Li <vivi.li@analog.com>
|
|||||||
/*****/
|
/*****/
|
||||||
|
|
||||||
/* main program, corresponds to procedures */
|
/* main program, corresponds to procedures */
|
||||||
@@ -101,6 +105,13 @@
|
@@ -101,6 +101,13 @@ main ()
|
||||||
/* Warning: With 16-Bit processors and Number_Of_Runs > 32000, */
|
/* Warning: With 16-Bit processors and Number_Of_Runs > 32000, */
|
||||||
/* overflow may occur for this array element. */
|
/* overflow may occur for this array element. */
|
||||||
|
|
||||||
@@ -27,7 +36,7 @@ Patch by Vivi Li <vivi.li@analog.com>
|
|||||||
printf ("\n");
|
printf ("\n");
|
||||||
printf ("Dhrystone Benchmark, Version 2.1 (Language: C)\n");
|
printf ("Dhrystone Benchmark, Version 2.1 (Language: C)\n");
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
@@ -114,13 +125,17 @@
|
@@ -114,13 +121,17 @@ main ()
|
||||||
printf ("Program compiled without 'register' attribute\n");
|
printf ("Program compiled without 'register' attribute\n");
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
}
|
}
|
||||||
@@ -51,3 +60,6 @@ Patch by Vivi Li <vivi.li@analog.com>
|
|||||||
|
|
||||||
printf ("Execution starts, %d runs through Dhrystone\n", Number_Of_Runs);
|
printf ("Execution starts, %d runs through Dhrystone\n", Number_Of_Runs);
|
||||||
|
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
From 7d890402dc5a32a72d5bc0532c87576937c18eb7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Robin Getz <rgetz@blackfin.uclinux.org>
|
||||||
|
Date: Mon, 15 Jul 2024 11:07:54 +0200
|
||||||
|
Subject: [PATCH] Get HZ value from system rather than requiring via CPPFLAGS
|
||||||
|
|
||||||
|
Upstream: dead
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
|
---
|
||||||
|
dhry.h | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/dhry.h b/dhry.h
|
||||||
|
index 1714562..482d343 100644
|
||||||
|
--- a/dhry.h
|
||||||
|
+++ b/dhry.h
|
||||||
|
@@ -359,6 +359,10 @@
|
||||||
|
/* for "times" */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifndef HZ
|
||||||
|
+#include <sys/param.h>
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#define Mic_secs_Per_Second 1000000.0
|
||||||
|
/* Berkeley UNIX C returns process times in seconds/HZ */
|
||||||
|
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
Get HZ value from system rather than requiring via CPPFLAGS
|
|
||||||
|
|
||||||
Patch by Robin Getz <rgetz@blackfin.uclinux.org>
|
|
||||||
|
|
||||||
--- a/dhry.h
|
|
||||||
+++ b/dhry.h
|
|
||||||
@@ -359,6 +359,10 @@
|
|
||||||
/* for "times" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifndef HZ
|
|
||||||
+#include <sys/param.h>
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#define Mic_secs_Per_Second 1000000.0
|
|
||||||
/* Berkeley UNIX C returns process times in seconds/HZ */
|
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
trust the exit status of the program
|
|
||||||
|
|
||||||
Patch by Robin Getz <rgetz@blackfin.uclinux.org>
|
|
||||||
|
|
||||||
--- a/dhry_1.c
|
|
||||||
+++ b/dhry_1.c
|
|
||||||
@@ -274,6 +289,7 @@
|
|
||||||
printf ("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
+ exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
From acd266448386c805c0afded780a5d7e6903bb485 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Robin Getz <rgetz@blackfin.uclinux.org>
|
||||||
|
Date: Mon, 15 Jul 2024 11:08:43 +0200
|
||||||
|
Subject: [PATCH] trust the exit status of the program
|
||||||
|
|
||||||
|
Upstream: dead
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
|
---
|
||||||
|
dhry_1.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/dhry_1.c b/dhry_1.c
|
||||||
|
index 97bd30f..358bdc3 100644
|
||||||
|
--- a/dhry_1.c
|
||||||
|
+++ b/dhry_1.c
|
||||||
|
@@ -285,6 +285,7 @@ main(int argc, char *argv[])
|
||||||
|
printf ("\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
+ exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
From 85dcf4ca20a60689479bcb143ecf8c0402822abe Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
Date: Mon, 15 Jul 2024 11:09:18 +0200
|
||||||
|
Subject: [PATCH] get prototypes for malloc/exit/strcpy
|
||||||
|
|
||||||
|
Upstream: dead
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
|
---
|
||||||
|
dhry.h | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/dhry.h b/dhry.h
|
||||||
|
index 482d343..825ef35 100644
|
||||||
|
--- a/dhry.h
|
||||||
|
+++ b/dhry.h
|
||||||
|
@@ -388,6 +388,8 @@
|
||||||
|
/* General definitions: */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include <stdlib.h>
|
||||||
|
+#include <string.h>
|
||||||
|
/* for strcpy, strcmp */
|
||||||
|
|
||||||
|
#define Null 0
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
get prototypes for malloc/exit/strcpy
|
|
||||||
|
|
||||||
Patch by Mike Frysinger <vapier@gentoo.org>
|
|
||||||
|
|
||||||
--- a/dhry.h
|
|
||||||
+++ b/dhry.h
|
|
||||||
@@ -388,6 +388,8 @@
|
|
||||||
/* General definitions: */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
+#include <string.h>
|
|
||||||
/* for strcpy, strcmp */
|
|
||||||
|
|
||||||
#define Null 0
|
|
||||||
@@ -1,10 +1,19 @@
|
|||||||
Avoid collision with C library using NO_PROTOTYPES found in code already
|
From 9a701143fc38fd9f5373af70dfd5f0da0bc8e04a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Robin Getz <rgetz@blackfin.uclinux.org>
|
||||||
|
Date: Mon, 15 Jul 2024 11:09:55 +0200
|
||||||
|
Subject: [PATCH] Avoid collision with C library using NO_PROTOTYPES
|
||||||
|
|
||||||
Patch by Robin Getz <rgetz@blackfin.uclinux.org>
|
Upstream: dead
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
|
---
|
||||||
|
dhry_1.c | 6 ++++++
|
||||||
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/dhry_1.c b/dhry_1.c
|
||||||
|
index 358bdc3..3ed1716 100644
|
||||||
--- a/dhry_1.c
|
--- a/dhry_1.c
|
||||||
+++ b/dhry_1.c
|
+++ b/dhry_1.c
|
||||||
@@ -28,7 +28,9 @@
|
@@ -28,7 +28,9 @@ char Ch_1_Glob,
|
||||||
int Arr_1_Glob [50];
|
int Arr_1_Glob [50];
|
||||||
int Arr_2_Glob [50] [50];
|
int Arr_2_Glob [50] [50];
|
||||||
|
|
||||||
@@ -14,7 +23,7 @@ Patch by Robin Getz <rgetz@blackfin.uclinux.org>
|
|||||||
Enumeration Func_1 ();
|
Enumeration Func_1 ();
|
||||||
/* forward declaration necessary since Enumeration may not simply be int */
|
/* forward declaration necessary since Enumeration may not simply be int */
|
||||||
|
|
||||||
@@ -45,14 +45,18 @@
|
@@ -45,14 +47,18 @@ Enumeration Func_1 ();
|
||||||
|
|
||||||
#ifdef TIMES
|
#ifdef TIMES
|
||||||
struct tms time_info;
|
struct tms time_info;
|
||||||
@@ -33,3 +42,6 @@ Patch by Robin Getz <rgetz@blackfin.uclinux.org>
|
|||||||
#define Too_Small_Time 2
|
#define Too_Small_Time 2
|
||||||
/* Measurements should last at least 2 seconds */
|
/* Measurements should last at least 2 seconds */
|
||||||
#endif
|
#endif
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
||||||
Reference in New Issue
Block a user