fix builds on macOS when kernel modules are used
The mac implementation of sed has different requirements for the -i option. Instead of using that, just redirect the output to the final location of modules.dep, since it's being copied in the very next line anyway. Bug: 38268091 Test: run build with kernel modules on macOS Merged-In: I49e4a1a69f01139ef47711ab1223d3a8e5cda568 Change-Id: I49e4a1a69f01139ef47711ab1223d3a8e5cda568
This commit is contained in:
parent
e90119fd4b
commit
f4ccb4f735
|
@ -1154,8 +1154,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) cp $(4)/lib/modules/0.0/modules.dep $(2)/lib/modules
|
||||
$(hide) sed -e 's/\(.*modules.*\):/\/\1:/g' -e 's/ \([^ ]*modules[^ ]*\)/ \/\1/g' $(4)/lib/modules/0.0/modules.dep > $(2)/lib/modules/modules.dep
|
||||
endef
|
||||
|
||||
# $(1): output file
|
||||
|
|
Loading…
Reference in New Issue