summaryrefslogtreecommitdiffstats
path: root/package/ympd/ympd-0001-CMake-cross-compile-mkdata.patch
blob: 0bd29c196d2626dad461f26d95197cdebd38d82a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Do not build the mkdata tool

The mkdata tool is needed on the host, during the build, so building
it for the target does not work when cross-compiling. Buildroot will
manually build mkdata before starting the ympd build.

Upstream is looking into a proper solution.

Signed-off-by: Eric Limpens <Limpens@Gmail.com>

Index: b/CMakeLists.txt
===================================================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,9 +28,6 @@
 	htdocs/index.html
 )
 
-add_executable(mkdata htdocs/mkdata.c)
-get_target_property(MKDATA_EXE mkdata LOCATION)
-
 add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/assets.c
     COMMAND ${MKDATA_EXE} ${RESOURCES} > ${PROJECT_BINARY_DIR}/assets.c
     WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OpenPOWER on IntegriCloud