FreeBSD Bugzilla – Attachment 186815 Details for
Bug 222697
sysutils/devcpu-data: allow custom cpucontrol(8) flags
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add rc.conf variable microcode_update_flags to allow user to specify additional flags
1.patch (text/plain), 1.38 KB, created by
Konstantin Belousov
on 2017-09-30 16:18:17 UTC
(
hide
)
Description:
Add rc.conf variable microcode_update_flags to allow user to specify additional flags
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2017-09-30 16:18:17 UTC
Size:
1.38 KB
patch
obsolete
>Index: sysutils/devcpu-data/Makefile >=================================================================== >--- sysutils/devcpu-data/Makefile (revision 450970) >+++ sysutils/devcpu-data/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= data > PORTVERSION= 1.11 >+PORTREVISION= 1 > CATEGORIES= sysutils > MASTER_SITES= https://downloadmirror.intel.com/26925/eng/:intel \ > http://www.amd64.org/microcode/:amd >Index: sysutils/devcpu-data/files/microcode_update.in >=================================================================== >--- sysutils/devcpu-data/files/microcode_update.in (revision 450970) >+++ sysutils/devcpu-data/files/microcode_update.in (working copy) >@@ -16,6 +16,7 @@ > # microcode_update_cpus (str): A list of cpus to update on startup, or "ALL" for all. > # Example: microcode_update_cpus_cpus="0 CPU0" > # Set to "ALL" by default. >+# microcode_update_flags (str): Flags for cpucontrol(8). > > . /etc/rc.subr > >@@ -48,7 +49,8 @@ > cpus=${microcode_cpus} > fi > for i in ${cpus}; do >- ${CMT} -u -d "${microcode_update_datadir}" /dev/cpuctl${i} || \ >+ ${CMT} -u ${microcode_update_flags} \ >+ -d "${microcode_update_datadir}" /dev/cpuctl${i} || \ > (echo "Failed." && exit 1) > done > echo "Done." >@@ -60,5 +62,6 @@ > : ${microcode_update_enable="NO"} > : ${microcode_update_datadir="%%DATADIR%%"} > : ${microcode_cpus="ALL"} >+: ${microcode_update_flags=""} > > run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 222697
:
186811
| 186815