Require first to compile kernel before installing modules

This commit is contained in:
Kamil Trzcinski 2016-09-17 18:24:42 +02:00
parent 2d9e7341a1
commit 71b4da7b59

View file

@ -62,10 +62,10 @@ $(KERNEL_BZIMAGE): $(KERNEL_CONFIG)
$(hide) $(KERNEL_BLD_ENV) $(MAKE) -C $(KERNEL_SRC_DIR) $(KERNEL_BLD_FLAGS) $(hide) $(KERNEL_BLD_ENV) $(MAKE) -C $(KERNEL_SRC_DIR) $(KERNEL_BLD_FLAGS)
$(hide) cp -f $(KERNEL_OUT_DIR)/arch/arm64/boot/Image $@ $(hide) cp -f $(KERNEL_OUT_DIR)/arch/arm64/boot/Image $@
$(KERNEL_OUT_MODINSTALL): $(KERNEL_CONFIG) $(KERNEL_OUT_MODINSTALL): $(KERNEL_BZIMAGE)
@rm -rf $(KERNEL_OUT_MODINSTALL)
@mkdir -p $(KERNEL_OUT_MODINSTALL) @mkdir -p $(KERNEL_OUT_MODINSTALL)
@$(KERNEL_BLD_ENV) $(MAKE) -C $(KERNEL_SRC_DIR) $(KERNEL_BLD_FLAGS) modules_install @$(KERNEL_BLD_ENV) $(MAKE) -C $(KERNEL_SRC_DIR) $(KERNEL_BLD_FLAGS) modules_install
@touch $@
mrproper_kernel: mrproper_kernel:
$(hide) $(KERNEL_BLD_ENV) $(MAKE) -C $(KERNEL_SRC_DIR) $(KERNEL_BLD_FLAGS) mrproper $(hide) $(KERNEL_BLD_ENV) $(MAKE) -C $(KERNEL_SRC_DIR) $(KERNEL_BLD_FLAGS) mrproper