linux-firmware rebuild
This commit is contained in:
@@ -27,12 +27,26 @@ def setup():
|
||||
|
||||
def build():
|
||||
#shelltools.cd("linux-firmware")
|
||||
|
||||
# Processing amd-ucode...
|
||||
shelltools.system("mkdir -p kernel/x86/microcode")
|
||||
shelltools.system("cat " + get.curDIR() + "/amd-ucode/microcode_amd*.bin > kernel/x86/microcode/AuthenticAMD.bin")
|
||||
shelltools.system("touch kernel/x86/microcode/AuthenticAMD.bin")
|
||||
shelltools.system("echo kernel/x86/microcode/AuthenticAMD.bin | cpio -o -H newc -R 0:0 > amd-ucode.img")
|
||||
shelltools.chmod(get.curDIR() + "/amd-ucode.img", 0644)
|
||||
shelltools.chmod(get.curDIR() + "/LICENSE.amd-ucode", 0644)
|
||||
|
||||
autotools.make()
|
||||
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
pisitools.insinto("/lib/firmware", "mix/*")
|
||||
|
||||
# Install amd-ucode
|
||||
pisitools.insinto("/boot", "amd-ucode.img")
|
||||
shelltools.system("mv LICENSE.amd-ucode LICENSE")
|
||||
pisitools.insinto("/usr/share/licenses/amd-ucode/", "LICENSE")
|
||||
|
||||
# Remove installed and LIC* files from /lib/firmware
|
||||
#pisitools.remove("/lib/firmware/GPL-3")
|
||||
|
||||
Reference in New Issue
Block a user