Remove trailing / from install path
Prevents make installing files with a double /: Install: out/target/product/generic_arm64/system/lib//libc.so Change-Id: Iee237f344e8140c4938aa9d1e6940e4fdbfa7cd8
This commit is contained in:
parent
9212b1b0d6
commit
e14388b9de
|
@ -119,7 +119,7 @@ func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) {
|
|||
path := installer.path.RelPathString()
|
||||
dir, file := filepath.Split(path)
|
||||
stem := strings.TrimSuffix(file, filepath.Ext(file))
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+dir)
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+filepath.Clean(dir))
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem)
|
||||
return nil
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue