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:
Colin Cross 2016-05-03 14:08:40 -07:00
parent 9212b1b0d6
commit e14388b9de
1 changed files with 1 additions and 1 deletions

View File

@ -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
})