Merge "Fix modules.dep breakage with multiple module dependencies"

am: 73461abd0c

Change-Id: I96080a797abb1f9d9887ab993082ce0c10a931ca
This commit is contained in:
Steve Muckle 2017-03-28 01:21:57 +00:00 committed by android-build-merger
commit 9c0198e6e9

View file

@ -1043,7 +1043,7 @@ define build-image-kernel-modules
$(hide) mkdir -p $(4)/lib/modules/0.0/$(3)lib/modules
$(hide) cp $(1) $(4)/lib/modules/0.0/$(3)lib/modules
$(hide) $(DEPMOD) -b $(4) 0.0
$(hide) sed -e 's/\(.*modules.*\):/\/\1:/g' -e 's/: \(.*modules.*\)/: \/\1/g' -i $(4)/lib/modules/0.0/modules.dep
$(hide) sed -e 's/\(.*modules.*\):/\/\1:/g' -e 's/ \([^ ]*modules[^ ]*\)/ \/\1/g' -i $(4)/lib/modules/0.0/modules.dep
$(hide) cp $(4)/lib/modules/0.0/modules.dep $(2)/lib/modules
endef