[OE-core] [PATCHv2] cmake: Avoid passing empty prefix to os.path.relpath

Otavio Salvador otavio.salvador at ossystems.com.br
Mon Nov 13 17:15:35 UTC 2017


On Sun, Nov 12, 2017 at 2:39 PM, Mike Crowe <mac at mcrowe.com> wrote:
> With meta-micro, ${prefix} is the empty string. This means that
> CMAKE_INSTALL_BINDIR:PATH and friends end up containing paths starting with
> many instances of "../", presumably due to os.path.relpath attempting to
> find its way to the current directory.
>
> Let's avoid this by ensuring that the root path always ends in a slash. If
> it already ends in a slash then adding another one shouldn't cause any
> problems.
>
> Signed-off-by: Mike Crowe <mac at mcrowe.com>

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list