|
@@ -54,6 +54,10 @@ SDL2_POST_INSTALL_STAGING_HOOKS += SDL2_FIX_SDL2_CONFIG_CMAKE
|
|
|
# We must enable static build to get compilation successful.
|
|
|
SDL2_CONF_OPTS += --enable-static
|
|
|
|
|
|
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
|
|
+SDL2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
|
|
|
+endif
|
|
|
+
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
SDL2_DEPENDENCIES += udev
|
|
|
SDL2_CONF_OPTS += --enable-libudev
|
|
@@ -76,7 +80,7 @@ endif
|
|
|
ifeq ($(BR2_PACKAGE_SDL2_DIRECTFB),y)
|
|
|
SDL2_DEPENDENCIES += directfb
|
|
|
SDL2_CONF_OPTS += --enable-video-directfb
|
|
|
-SDL2_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
|
|
+SDL2_CONF_ENV += ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
|
|
else
|
|
|
SDL2_CONF_OPTS += --disable-video-directfb
|
|
|
endif
|