generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
11
package/iucode-tool/Config.in
Normal file
11
package/iucode-tool/Config.in
Normal file
@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_IUCODE_TOOL
|
||||
bool "iucode-tool"
|
||||
depends on BR2_x86_64 || BR2_i386
|
||||
select BR2_PACKAGE_INTEL_MICROCODE
|
||||
select BR2_PACKAGE_INTEL_MICROCODE_INSTALL_TARGET
|
||||
select BR2_PACKAGE_ARGP_STANDALONE \
|
||||
if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
|
||||
help
|
||||
Intel processor microcode tool
|
||||
|
||||
https://gitlab.com/iucode-tool
|
||||
28
package/iucode-tool/S00iucode-tool
Normal file
28
package/iucode-tool/S00iucode-tool
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Upload microcode into the processor.
|
||||
#
|
||||
|
||||
MICROCODE_DIR="/lib/firmware/intel-ucode"
|
||||
|
||||
start() {
|
||||
printf 'Starting iucode-tool: '
|
||||
/usr/sbin/iucode_tool -q -k "$MICROCODE_DIR"
|
||||
status="$?"
|
||||
if [ "$status" = 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start;;
|
||||
stop|restart|reload)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
3
package/iucode-tool/iucode-tool.hash
Normal file
3
package/iucode-tool/iucode-tool.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95 iucode-tool_2.3.1.tar.xz
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
|
||||
29
package/iucode-tool/iucode-tool.mk
Normal file
29
package/iucode-tool/iucode-tool.mk
Normal file
@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# iucode-tool
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IUCODE_TOOL_VERSION = 2.3.1
|
||||
IUCODE_TOOL_SOURCE = iucode-tool_$(IUCODE_TOOL_VERSION).tar.xz
|
||||
IUCODE_TOOL_SITE = https://gitlab.com/iucode-tool/releases/raw/master
|
||||
IUCODE_TOOL_LICENSE = GPL-2.0+
|
||||
IUCODE_TOOL_LICENSE_FILES = COPYING
|
||||
IUCODE_TOOL_CPE_ID_VENDOR = iucode-tool_project
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
||||
IUCODE_TOOL_DEPENDENCIES += argp-standalone $(TARGET_NLS_DEPENDENCIES)
|
||||
IUCODE_TOOL_CONF_ENV += LIBS=$(TARGET_NLS_LIBS)
|
||||
endif
|
||||
|
||||
define IUCODE_TOOL_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/iucode-tool/S00iucode-tool \
|
||||
$(TARGET_DIR)/etc/init.d/S00iucode-tool
|
||||
endef
|
||||
|
||||
define IUCODE_TOOL_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/iucode-tool/iucode.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/iucode.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
10
package/iucode-tool/iucode.service
Normal file
10
package/iucode-tool/iucode.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Upload microcode into the processor
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/iucode_tool -k /usr/share/misc/intel-microcode.dat
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user