Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 37cb44f

Browse files
committed
CMakeLists: don't assume !ARM64 is ARM
CMakeLists.txt currently assume everything not ARM64 to be ARM. When compiling on x86_64-linux, this pulls in some binaries that are arm32 only. Some tools make some sense to have accessible even on non-ARM workstations. For example, `dtmerge` can be used to merge .dtb files with overlays on a x86_64 machine (while mounting an sdcard for example). Simply by adding this conditionals, we're able to get a `dtmerge` binary that runs on x86_64-linux. Signed-off-by: Florian Klink <flokli@flokli.de>
1 parent 093b30b commit 37cb44f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SET(PROJECT_APIVER "${PROJECT_VER}")
1111
if(ARM64)
1212
set(BUILD_MMAL FALSE)
1313
set(BUILD_MMAL_APPS FALSE)
14-
else()
14+
elseif(ARM AND NOT ARM64)
1515
set(BUILD_MMAL TRUE)
1616
set(BUILD_MMAL_APPS TRUE)
1717
endif()
@@ -66,7 +66,7 @@ endif()
6666
add_subdirectory(interface/vcos)
6767
add_subdirectory(interface/vmcs_host)
6868
add_subdirectory(interface/vchiq_arm)
69-
if(NOT ARM64)
69+
if(ARM AND NOT ARM64)
7070
add_subdirectory(interface/khronos)
7171
endif()
7272

@@ -82,7 +82,7 @@ if(BUILD_MMAL_APPS)
8282
add_subdirectory(host_applications/android/apps/vidtex)
8383
endif(BUILD_MMAL_APPS)
8484

85-
if(NOT ARM64)
85+
if(ARM AND NOT ARM64)
8686
add_subdirectory(middleware/openmaxil)
8787
endif()
8888

host_applications/linux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_subdirectory(libs/bcm_host)
44
add_subdirectory(apps/gencmd)
55
add_subdirectory(apps/tvservice)
66
add_subdirectory(apps/vcmailbox)
7-
if(NOT ARM64)
7+
if(ARM AND NOT ARM64)
88
add_subdirectory(apps/raspicam)
99
add_subdirectory(libs/sm)
1010
add_subdirectory(apps/smem)

host_applications/linux/apps/raspicam/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set (COMMON_SOURCES
4040
RaspiGPS.c
4141
libgps_loader.c)
4242

43-
if(NOT ARM64)
43+
if(ARM AND NOT ARM64)
4444
set (EGL_LIBS brcmGLESv2 brcmEGL)
4545
set (EGL_SOURCES RaspiTex.c RaspiTexUtil.c tga.c)
4646
set (GL_SCENE_SOURCES

interface/vmcs_host/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ add_library(vchostif
1717
#add_library(bufman vc_vchi_bufman.c )
1818
set(INSTALL_TARGETS vchostif)
1919

20-
if(NOT ARM64)
20+
if(ARM AND NOT ARM64)
2121
# OpenMAX/IL component service
2222
add_library(vcilcs
2323
vcilcs.c vcilcs_in.c vcilcs_out.c vcilcs_common.c)

0 commit comments

Comments
 (0)