Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-generic-common: Commit

device/generic/common


Commit MetaInfo

Revision20a31d9c6a3d9d6e73db8b730c391f64e40463f4 (tree)
Time2018-12-07 16:09:22
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

kernel.mk: remove the module dir on errors

The make goal should be removed on building errors, otherwise
the next try will just success.

Change Summary

Incremental Difference

--- a/build/tasks/kernel.mk
+++ b/build/tasks/kernel.mk
@@ -76,7 +76,7 @@ ALL_EXTRA_MODULES := $(patsubst %,$(TARGET_OUT_INTERMEDIATES)/kmodule/%,$(TARGET
7676 $(ALL_EXTRA_MODULES): $(TARGET_OUT_INTERMEDIATES)/kmodule/%: $(BUILT_KERNEL_TARGET) | $(ACP)
7777 @echo Building additional kernel module $*
7878 $(hide) mkdir -p $(@D) && $(ACP) -fr $(EXTRA_KERNEL_MODULE_PATH_$*) $(@D)
79- $(mk_kernel) M=$(abspath $@) modules
79+ $(mk_kernel) M=$(abspath $@) modules || ( rm -rf $@ && exit 1 )
8080
8181 $(KERNEL_MODULES_DEP): $(BUILT_KERNEL_TARGET) $(ALL_EXTRA_MODULES)
8282 $(hide) rm -rf $(TARGET_OUT)/lib/modules
Show on old repository browser