AnsweredAssumed Answered

build kernel_imx fail with "make O=../$(KERNEL_OUT)"

Question asked by xingrui zhu on Jul 21, 2015
Latest reply on Jul 23, 2015 by xingrui zhu

Dear supporter

 

We want to redirect the kernel build output to $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ

But the below error info occur:

 

Copy: out/target/product/em70/root/fstab.Partner

Install: out/host/linux-x86/bin/minigzip

Host Clang TableGen: clang (gen-clang-diags-defs -clang-component=Common) <= external/clang/include/clang/Basic/Diagnostic.td

Host Clang TableGen: clang (gen-clang-diags-defs -clang-component=Frontend) <= external/clang/include/clang/Basic/Diagnostic.td

Host Clang TableGen: clang (gen-clang-diags-defs -clang-component=Driver) <= external/clang/include/clang/Basic/Diagnostic.td

firmware/imx/sdma/sdma-imx6q-to1.bin.gen.S: Assembler messages:

firmware/imx/sdma/sdma-imx6q-to1.bin.gen.S:5: Error: file not found: firmware/imx/sdma/sdma-imx6q-to1.bin

  CC      fs/cramfs/inode.o

  CC      kernel/power/fbearlysuspend.o

 

=====================  with "make O=" for kernel build =====================================

745 INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel

746 TARGET_PREBUILT_KERNEL := $(PRODUCT_OUT)/kernel

747 export KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ

748 KERNEL_CONFIGURE := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/.config

749 KERNEL_ZIMAGE    := $(KERNEL_OUT)/arch/arm/boot/zImage

750 KERNEL_UIMAGE    := $(KERNEL_OUT)/arch/arm/boot/uImage

751 KERNEL_HEADERS_INSTALL := $(KERNEL_OUT)/usr

 

759 $(KERNEL_CONFIGURE): kernel_imx/arch/arm/configs/$(TARGET_KERNEL_DEFCONF)

761     install -d $(KERNEL_OUT)

762     $(MAKE) -C kernel_imx $(TARGET_KERNEL_DEFCONF) -j$(HOST_PROCESSOR) O=../$(KERNEL_O     UT) $(KERNEL_ENV)

763

764 $(KERNEL_HEADERS_INSTALL): $(KERNEL_CONFIGURE)

766     install -d $(KERNEL_OUT)

767     $(MAKE) -C kernel_imx -j$(HOST_PROCESSOR) O=../$(KERNEL_OUT) $(KERNEL_ENV) headers     _install

768

769 $(TARGET_PREBUILT_KERNEL): $(KERNEL_CONFIGURE)

771     $(MAKE) -C kernel_imx -j$(HOST_PROCESSOR) O=../$(KERNEL_OUT) uImage $(KERNEL_ENV)

772     install -D $(KERNEL_UIMAGE)  $(PRODUCT_OUT)/uImage

773     install -D $(KERNEL_ZIMAGE)  $(PRODUCT_OUT)/kernel

Outcomes