build: align SOURCE path for build system and SDK
authorPaul Spooren <mail@aparcar.org>
Mon, 12 Feb 2024 15:59:50 +0000 (16:59 +0100)
committerAlexander Couzens <lynxis@fe80.eu>
Mon, 23 Sep 2024 12:34:46 +0000 (14:34 +0200)
commit10cc5fcd00c648b1a3b4043734c49c18f294041f
treef06fe30d95df60599929b7d5bd2d1abac2cafb07
parent87fbb5085d7e290b0ba536ad7d0876c4224723a6
build: align SOURCE path for build system and SDK

Building a package in the build system or the SDK results in different
values for the `SOURCE` property, it's either `packages/<package name>`
or `feeds/base/<package name>`. The reason is that the SDK handles
`openwrt.git` as an external feed called while the build system contains
the *base* packages directly.

Since packages created with either method are (ideally) the same (bit
for bit), align the content of SOURCE. To do so this commit creates a
symlink from `feeds/base` to `$(TOPDIR)/package` and adopts the SOURCE
when building from inside the build system.

Signed-off-by: Paul Spooren <mail@aparcar.org>
include/package-defaults.mk
include/toplevel.mk