Hi Burkhard,
Sorry, I missed the mailing list address, so resend it.
Thanks so much for response.
The attachment is generated by
svn diff > lemuria_Add_support_for_Hygon_Dhyana_processor.patch
The lemuria version is r5979.
Best regards!
Jinke Fan
On 2021/4/9 23:18, Plaum, Burkhard wrote:
Sorry I confused lemuria with lumiera (an external project).
But in my lemuria tree your patch doesn't apply:
Src/Gmerlin/lemuria$ patch -p0 < patch.txt
patching file cpuinfo.sh
Hunk #1 FAILED at 150.
1 out of 1 hunk FAILED -- saving rejects to file cpuinfo.sh.rej
patching file utils/cpuinfo.c
Hunk #1 FAILED at 102.
1 out of 1 hunk FAILED -- saving rejects to file utils/cpuinfo.c.rej
Can you send it as a regular attachment instread of copying the text into the
email?
________________________________________
From: Jinke Fan <[email protected]>
Sent: Friday, April 9, 2021 9:21:52 AM
To: [email protected]; Plaum, Burkhard
Subject: lemuria: Add support for Hygon Dhyana processor
Hi Burkhard,
On the Hygon CPU platform, I had some problems executing ./configure
in the Lemuria code tree.
The log is as follows:
checking if gcc supports Your flags... no
checking if gcc supports does flags... no
checking if gcc supports not flags... no
checking if gcc supports even flags... no
checking if gcc supports support flags... no
checking if gcc supports "i386" flags... no
checking if gcc supports for flags... no
checking if gcc supports '-march' flags... no
checking if gcc supports and flags... no
checking if gcc supports -mtune. flags... no
Log after repaired:
checking if gcc supports -march=k8 flags... yes
checking if gcc supports -mtune=k8 flags... yes
checking if gcc supports --fast-math flags... yes
The output of svn diff:
Index: cpuinfo.sh
===================================================================
--- cpuinfo.sh (revision 6215)
+++ cpuinfo.sh (working copy)
@@ -150,6 +150,14 @@
;;
esac
;;
+ HygonGenuine)
+ case "$pfamily" in
+ 24) proc=k8
+ ;;
+ *) proc=k8
+ ;;
+ esac
+ ;;
GenuineIntel)
case "$pfamily" in
3) proc=i386
Index: utils/cpuinfo.c
===================================================================
--- utils/cpuinfo.c (revision 6215)
+++ utils/cpuinfo.c (working copy)
@@ -102,6 +102,8 @@
model_name = "Unknown Intel CPU";
else if (strcmp(idstr, "AuthenticAMD") == 0)
model_name = "Unknown AMD CPU";
+ else if (strcmp(idstr, "HygonGenuine") == 0)
+ model_name = "Unknown Hygon CPU";
regs_ext = cpuid((1<<31) + 0);
max_ext_cpuid = regs_ext.eax;
Best regards!
Jinke Fan
Index: cpuinfo.sh
===================================================================
--- cpuinfo.sh (revision 6221)
+++ cpuinfo.sh (working copy)
@@ -150,6 +150,14 @@
;;
esac
;;
+ HygonGenuine)
+ case "$pfamily" in
+ 24) proc=k8
+ ;;
+ *) proc=k8
+ ;;
+ esac
+ ;;
GenuineIntel)
case "$pfamily" in
3) proc=i386
Index: utils/cpuinfo.c
===================================================================
--- utils/cpuinfo.c (revision 6221)
+++ utils/cpuinfo.c (working copy)
@@ -102,6 +102,8 @@
model_name = "Unknown Intel CPU";
else if (strcmp(idstr, "AuthenticAMD") == 0)
model_name = "Unknown AMD CPU";
+ else if (strcmp(idstr, "HygonGenuine") == 0)
+ model_name = "Unknown Hygon CPU";
regs_ext = cpuid((1<<31) + 0);
max_ext_cpuid = regs_ext.eax;
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general