diff --git a/arch/riscv/cpu/k230/config.mk b/arch/riscv/cpu/k230/config.mk index 4cffe0d4..043433a0 100755 --- a/arch/riscv/cpu/k230/config.mk +++ b/arch/riscv/cpu/k230/config.mk @@ -11,8 +11,8 @@ add_firmware_head: u-boot.bin spl/u-boot-spl.bin @cp spl/u-boot-spl.bin t.bin; python $(srctree)/tools/k230_image.py -i t.bin -o k230-u-boot-spl.bin -n; rm -rf t.bin @echo "Make uboot.img" - @$(srctree)/tools/k230_priv_gzip -k -f u-boot.bin; - @$(srctree)/tools/mkimage -A riscv -O u-boot -C gzip -T firmware -a ${CONFIG_SYS_TEXT_BASE} -e ${CONFIG_SYS_TEXT_BASE} -n uboot -d u-boot.bin.gz u-boot.img + @$(srctree)/tools/k230_priv_gzip -k -f u-boot.bin + @$(objtree)/tools/mkimage -A riscv -O u-boot -C gzip -T firmware -a ${CONFIG_SYS_TEXT_BASE} -e ${CONFIG_SYS_TEXT_BASE} -n uboot -d u-boot.bin.gz u-boot.img @echo "Add header to u-boot.img" @cp u-boot.img t.bin;python $(srctree)/tools/k230_image.py -i t.bin -o k230-u-boot.img -n; rm -rf t.bin diff --git a/tools/k230_priv_gzip b/tools/k230_priv_gzip index 44c03c84..a1dd8a70 100755 Binary files a/tools/k230_priv_gzip and b/tools/k230_priv_gzip differ