Преглед изворни кода

package/pkg-utils.mk: remove trailing slash in pkgdir definition

Signed-off-by: Scott Fan <fancp2007@gmail.com>
[Arnout: move to definition of pkgdir instead of PKGDIR]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
Scott Fan пре 1 година
родитељ
комит
748fc4be21
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      package/pkg-utils.mk

+ 1 - 1
package/pkg-utils.mk

@@ -42,7 +42,7 @@ KCONFIG_DISABLE_OPT = $(Q)$(call KCONFIG_MUNGE_DOT_CONFIG, $(1), $(SHARP_SIGN) $
 # directory from its makefile directory, using the $(MAKEFILE_LIST)
 # directory from its makefile directory, using the $(MAKEFILE_LIST)
 # variable provided by make. This is used by the *-package macros to
 # variable provided by make. This is used by the *-package macros to
 # automagically find where the package is located.
 # automagically find where the package is located.
-pkgdir = $(dir $(lastword $(MAKEFILE_LIST)))
+pkgdir = $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
 pkgname = $(lastword $(subst /, ,$(pkgdir)))
 pkgname = $(lastword $(subst /, ,$(pkgdir)))
 
 
 # Helper to build the extension for a package archive, based on various
 # Helper to build the extension for a package archive, based on various