wjshan 发表于 2024-3-11 09:23:30

源码编译不了

编译提供的源码,提示这个错误,是怎么回事,麻烦帮忙看看,多谢



forlinx@ubuntu:~/imx8mm/OK8MM-linux-sdk$ make
=================================
Building the Linux Kernel
=================================
make -j-C   LDFLAGS=
make: *** LDFLAGS=: No such file or directory.Stop.
Makefile:11: recipe for target 'linux' failed
make: *** Error 2
forlinx@ubuntu:~/imx8mm/OK8MM-linux-sdk$ cat Makefile
all: \
        linux linux_install \
        qt-examples qt-examples_install \
        cmd-examples cmd-examples_install \
        sdcard

clean: linux_cleanqt-examples_clean cmd-examples_clean

# Kernel build targets
linux:
        @echo =================================
        @echo   Building the Linux Kernel
        @echo =================================
        $(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) $(LINUX_DEFCONFIG) LDFLAGS=
        $(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) LDFLAGS=
        install $(LINUXKERNEL_INSTALL_DIR)/arch/arm64/boot/Image $(SDK_PATH)/images/boot
        install $(LINUXKERNEL_INSTALL_DIR)/arch/arm64/boot/dts/freescale/ok8mm-evk.dtb $(SDK_PATH)/images/boot
        @if [ -e $(SDK_PATH)/images/boot.img ];then \
                rm $(SDK_PATH)/images/boot.img ; \
        fi
        mkfs.vfat -n "Boot imx8mmevk" -S 512 -C $(SDK_PATH)/images/boot.img 65536
        mcopy -i $(SDK_PATH)/images/boot.img -s $(SDK_PATH)/images/boot/Image ::/Image
        mcopy -i $(SDK_PATH)/images/boot.img -s $(SDK_PATH)/images/boot/ok8mm-evk.dtb ::/ok8mm-evk.dtb
        mcopy -i $(SDK_PATH)/images/boot.img -s $(SDK_PATH)/images/boot/logo.bmp ::/logo.bmp

L_S_H 发表于 2024-4-24 13:40:34

这个是没有配置交叉编译工具
页: [1]
查看完整版本: 源码编译不了