dtc: make clean before building for target

DTC tries to link against libraries built for host when building for target. Work this around by cleaning the build dir before building for target.
This commit is contained in:
kszaq 2018-02-12 19:35:10 +01:00
parent daca47e7ad
commit 1f2d2bacb6

View File

@ -46,6 +46,10 @@ post_makeinstall_host() {
touch $TOOLCHAIN/lib/$PKG_PYTHON_VERSION/site-packages/pylibfdt/__init__.py
}
pre_make_target() {
make clean BIN=
}
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
mkdir -p $INSTALL/usr/lib