mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
Let user skip installation of the GUI module for Qtopia
This commit is contained in:
parent
fcd24512d8
commit
149c0d450c
@ -88,6 +88,13 @@ config BR2_PACKAGE_QTOPIA4_QT3SUPPORT
|
|||||||
library with proxy code and increase the space required on target.
|
library with proxy code and increase the space required on target.
|
||||||
If unsure say n.
|
If unsure say n.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_QTOPIA4_GUI_MODULE
|
||||||
|
bool "Gui Module"
|
||||||
|
help
|
||||||
|
Turns on support to Gui applications. If your board don't have
|
||||||
|
video output, or you don't require Qt GUI, say n.
|
||||||
|
|
||||||
|
if BR2_PACKAGE_QTOPIA4_GUI_MODULE
|
||||||
menu "Pixel depths"
|
menu "Pixel depths"
|
||||||
comment "Deselecting each option leads to Qt's default (8,16,32)"
|
comment "Deselecting each option leads to Qt's default (8,16,32)"
|
||||||
|
|
||||||
@ -128,6 +135,7 @@ config BR2_PACKAGE_QTOPIA4_PIXEL_DEPTH_32
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
endmenu
|
endmenu
|
||||||
|
endif
|
||||||
|
|
||||||
config BR2_PACKAGE_QTOPIA4_GIF
|
config BR2_PACKAGE_QTOPIA4_GIF
|
||||||
bool "Enable GIF support"
|
bool "Enable GIF support"
|
||||||
|
@ -420,6 +420,10 @@ ifeq ($(BR2_PACKAGE_QTOPIA4_PHONON),y)
|
|||||||
cp -dpfr $(STAGING_DIR)/usr/plugins/phonon_backend $(TARGET_DIR)/usr/plugins/
|
cp -dpfr $(STAGING_DIR)/usr/plugins/phonon_backend $(TARGET_DIR)/usr/plugins/
|
||||||
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/plugins/phonon_backend/*
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/plugins/phonon_backend/*
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(BR2_PACKAGE_QTOPIA4_GUI_MODULE),y)
|
||||||
|
# Remove Gui library, not needed
|
||||||
|
-rm $(TARGET_DIR)/usr/lib/libQtGui*
|
||||||
|
endif
|
||||||
ifneq ($(BR2_PACKAGE_QTOPIA4_SQL_MODULE),y)
|
ifneq ($(BR2_PACKAGE_QTOPIA4_SQL_MODULE),y)
|
||||||
# Remove Sql libraries, not needed
|
# Remove Sql libraries, not needed
|
||||||
-rm $(TARGET_DIR)/usr/lib/libQtSql*
|
-rm $(TARGET_DIR)/usr/lib/libQtSql*
|
||||||
|
@ -109,8 +109,8 @@ diff -urN u-boot-2009.01-0rig//common/cmd_factory.c u-boot-2009.01/common/cmd_fa
|
|||||||
+ setenv("fs-date", MK_STR(DATE));
|
+ setenv("fs-date", MK_STR(DATE));
|
||||||
+ setenv("rd", "rootfs.arm-"MK_STR(DATE)".ext2");
|
+ setenv("rd", "rootfs.arm-"MK_STR(DATE)".ext2");
|
||||||
+#endif
|
+#endif
|
||||||
+#if defined(KERNEL_VERSION)
|
+#if defined(KERNEL_NAME)
|
||||||
+ setenv("linux", MK_STR(BOARD_NAME)"-linux-"MK_STR(KERNEL_VERSION)"-"MK_STR(DATE)".gz");
|
+ setenv("linux", MK_STR(KERNEL_NAME));
|
||||||
+#endif
|
+#endif
|
||||||
+ setenv("get-ramdisk", "tftp ${ramdisk} ${rd}; setenv rd-size ${filesize}");
|
+ setenv("get-ramdisk", "tftp ${ramdisk} ${rd}; setenv rd-size ${filesize}");
|
||||||
+ setenv("store-ramdisk", "cp.b ${ramdisk} ${FS} ${rd-size}");
|
+ setenv("store-ramdisk", "cp.b ${ramdisk} ${FS} ${rd-size}");
|
||||||
@ -243,32 +243,17 @@ diff -urN u-boot-2009.01-0rig//common/cmd_factory.c u-boot-2009.01/common/cmd_fa
|
|||||||
+
|
+
|
||||||
+int do_os (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
+int do_os (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
+{
|
+{
|
||||||
+ char *kchip;
|
+#if defined(KERNEL_NAME)
|
||||||
+ char *kdate;
|
+ setenv("linux", MK_STR(KERNEL_NAME));
|
||||||
+ char *kver;
|
+#else
|
||||||
+ char cmd[512];
|
+ setenv("linux", "uImage");
|
||||||
+ kchip = getenv("hostname");
|
+#endif
|
||||||
+ kdate = getenv("kernel-date");
|
|
||||||
+ kver = getenv("kernel-version");
|
|
||||||
+ if((strlen(kdate) + strlen(kver) + 32) > 500) {
|
|
||||||
+ printf("Error: Environment too large during 'os': ");
|
|
||||||
+ printf("len=%d\n", strlen(kdate) + strlen(kver) + 32);
|
|
||||||
+ } else if(kver != NULL) {
|
|
||||||
+ if(kdate != NULL) {
|
|
||||||
+ sprintf(cmd,"%s-linux-%s-%s.gz",kchip,kver,kdate);
|
|
||||||
+ } else {
|
|
||||||
+ sprintf(cmd,"%s-linux-%s.gz",kchip,kver);
|
|
||||||
+ }
|
|
||||||
+ printf("Setting kernel to %s\n",cmd);
|
|
||||||
+ setenv("linux",cmd);
|
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+ }
|
|
||||||
+ return 1;
|
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+U_BOOT_CMD(
|
+U_BOOT_CMD(
|
||||||
+ os, 1, 1, do_os,
|
+ os, 1, 1, do_os,
|
||||||
+ "os\t- Select linux version ${hostname}-linux-${kernel-name}-${kernel-date}\n"
|
+ "os\t- Select linux version\n"
|
||||||
+ , "\n"
|
+ , "\n"
|
||||||
+);
|
+);
|
||||||
+
|
+
|
||||||
|
@ -111,6 +111,7 @@ ifdef BR2_TARGET_UBOOT_DEFAULT_ENV
|
|||||||
@echo "#ifndef __BR2_ADDED_CONFIG_H" >> $(U_BOOT_INC_CONF_FILE)
|
@echo "#ifndef __BR2_ADDED_CONFIG_H" >> $(U_BOOT_INC_CONF_FILE)
|
||||||
@echo "#define __BR2_ADDED_CONFIG_H" >> $(U_BOOT_INC_CONF_FILE)
|
@echo "#define __BR2_ADDED_CONFIG_H" >> $(U_BOOT_INC_CONF_FILE)
|
||||||
$(call insert_define, DATE, $(DATE))
|
$(call insert_define, DATE, $(DATE))
|
||||||
|
$(call insert_define, KERNEL_NAME, $(LINUX26_KERNEL_NAME))
|
||||||
$(call insert_define, CONFIG_LOAD_SCRIPTS, 1)
|
$(call insert_define, CONFIG_LOAD_SCRIPTS, 1)
|
||||||
ifneq ($(strip $(BR2_PROJECT)),"")
|
ifneq ($(strip $(BR2_PROJECT)),"")
|
||||||
$(call insert_define, CONFIG_HOSTNAME, $(BR2_PROJECT))
|
$(call insert_define, CONFIG_HOSTNAME, $(BR2_PROJECT))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user