[OpenWrt-Devel] [PATCH v4 6/6] intel-microcode: create early load microcode image
Tomasz Maciej Nowak
tomek_n at o2.pl
Sun Nov 25 13:13:40 EST 2018
W dniu 24.11.2018 o 14:17, Hauke Mehrtens pisze:
> On 11/20/18 5:20 PM, Tomasz Maciej Nowak wrote:
>> Create initrd image with packed microcode. This'll allow to load it at
>> early boot stage.
>>
>> Signed-off-by: Tomasz Maciej Nowak <tomek_n at o2.pl>
>> ---
>> package/firmware/intel-microcode/Makefile | 14 ++++++++------
>> 1 file changed, 8 insertions(+), 6 deletions(-)
>>
>> diff --git a/package/firmware/intel-microcode/Makefile b/package/firmware/intel-microcode/Makefile
>> index 07db9b1f96..4bd47b087a 100644
>> --- a/package/firmware/intel-microcode/Makefile
>> +++ b/package/firmware/intel-microcode/Makefile
>> @@ -35,15 +35,17 @@ define Package/intel-microcode
>> endef
>>
>> define Build/Compile
>> - IUCODE_TOOL=$(STAGING_DIR)/../host/bin/iucode_tool $(MAKE) -C $(PKG_BUILD_DIR)
>> - mkdir $(PKG_BUILD_DIR)/intel-ucode-ipkg
>
> Why is this mkdir not needed any more?
Simply because we are not operating in that directory anymore. It was added in this commit:
f4d30476712c086d5a346ed10e155c0a9399ebc9 firmware: intel-microcode: bump to 20180703
because upstream source package already supplied "intel-ucode" directory.
>
>> - $(STAGING_DIR)/../host/bin/iucode_tool -q \
>> - --write-firmware=$(PKG_BUILD_DIR)/intel-ucode-ipkg $(PKG_BUILD_DIR)/$(MICROCODE).bin
>> + IUCODE_TOOL=$(STAGING_DIR)/../host/bin/iucode_tool \
>> + $(MAKE) -C $(PKG_BUILD_DIR)
>> + $(STAGING_DIR)/../host/bin/iucode_tool -q --mini-earlyfw \
>> + --write-earlyfw=$(PKG_BUILD_DIR)/intel-ucode.cpio \
>> + $(PKG_BUILD_DIR)/$(MICROCODE).bin
>> endef
>>
>> define Package/intel-microcode/install
>> - $(INSTALL_DIR) $(1)/lib/firmware/intel-ucode
>> - $(INSTALL_DATA) $(PKG_BUILD_DIR)/intel-ucode-ipkg/* $(1)/lib/firmware/intel-ucode
>> + $(INSTALL_DIR) $(1)/boot
>> + $(INSTALL_DATA) $(PKG_BUILD_DIR)/intel-ucode.cpio \
>> + $(1)/boot/intel-ucode.img
>> endef
>>
>> $(eval $(call BuildPackage,intel-microcode))
>>
>
>
--
TMN
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list