diff --git a/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/install_reboot.sh b/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/install_reboot.sh index f5a08778..f3952ad1 100755 --- a/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/install_reboot.sh +++ b/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/install_reboot.sh @@ -16,6 +16,13 @@ echo " "; boot_device_type=0 boot_device_num=1 +install_target_type=0 +root_partition="" +root_mount_point="/mnt/usb1" + +resize_ext4_dir="/usr/local/ls_resize" +resize_ext4_flag="$resize_ext4_dir/resizerootfs" + check_cmdline_ins_target() { install_target_type=0 @@ -23,8 +30,13 @@ check_cmdline_ins_target() install_target_type=$(cat /proc/cmdline | grep ins_target=mmc) if [ ! -z "$install_target_type" ]; then boot_device_type=1 + install_target_type=1 + root_partition="/dev/mmcblk0p1" return 0 fi + boot_device_type=0 + root_partition="/dev/sda1" + install_target_type=0 } #防止前面的脚本出现错误,导致没有解除挂载一些已经挂载的分区。 @@ -40,9 +52,22 @@ check_and_umount_for_safe() done } +check_resize_ext4() +{ + mount $root_partition $root_mount_point; + sync; + + if [ -d $resize_ext4_dir ]; then + echo 2 > $resize_ext4_flag + fi + umount $root_partition + sync +} + #防止前面的脚本出现错误,导致没有解除挂载一些已经挂载的分区。 check_cmdline_ins_target check_and_umount_for_safe; +check_resize_ext4 /home/sys_config_tool $boot_device_type 0 $boot_device_num echo "-------------> stage3 install system finish! please reboot or shutdowm! <-------------" diff --git a/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/ramdisk-master-839f588304 b/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/ramdisk-master-eed5fbe099 similarity index 100% rename from board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/ramdisk-master-839f588304 rename to board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/ramdisk-master-eed5fbe099 diff --git a/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/recover_reboot.sh b/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/recover_reboot.sh index 3cd42988..7defc76f 100755 --- a/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/recover_reboot.sh +++ b/board/loongson/ls2k1000la/rootfs_ramdisk_overlay/home/recover_reboot.sh @@ -13,6 +13,13 @@ echo " "; boot_device_type=0 boot_device_num=1 +install_target_type=0 +root_partition="" +root_mount_point="/mnt/usb1" + +resize_ext4_dir="/usr/local/ls_resize" +resize_ext4_flag="$resize_ext4_dir/resizerootfs" + check_cmdline_ins_target() { install_target_type=0 @@ -20,8 +27,12 @@ check_cmdline_ins_target() install_target_type=$(cat /proc/cmdline | grep rec_target=mmc) if [ ! -z "$install_target_type" ]; then boot_device_type=1 + install_target_type=1 + root_partition="/dev/mmcblk0p1" return 0 fi + root_partition="/dev/sda1" + install_target_type=0 } #防止前面的脚本出现错误,导致没有解除挂载一些已经挂载的分区。 @@ -39,9 +50,22 @@ check_and_umount_for_safe() done } +check_resize_ext4() +{ + mount $root_partition $root_mount_point; + sync; + + if [ -d $resize_ext4_dir ]; then + echo 2 > $resize_ext4_flag + fi + umount $root_partition + sync +} + #防止前面的脚本出现错误,导致没有解除挂载一些已经挂载的分区。 check_cmdline_ins_target check_and_umount_for_safe; +check_resize_ext4 /home/sys_config_tool $boot_device_type 0 $boot_device_num echo "-------------> stage3 reboot system <-------------" diff --git a/board/loongson/ls2k300/rootfs_overlay/var/lib/alsa/asound.state b/board/loongson/ls2k300/rootfs_overlay/var/lib/alsa/asound.state new file mode 100644 index 00000000..93af0515 --- /dev/null +++ b/board/loongson/ls2k300/rootfs_overlay/var/lib/alsa/asound.state @@ -0,0 +1,334 @@ +state.ES8388 { + control.1 { + iface MIXER + name 'Capture Digital Volume' + value.0 192 + value.1 192 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 192' + dbmin -9600 + dbmax 0 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.2 { + iface MIXER + name 'Capture ZC Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.3 { + iface MIXER + name 'DAC Deemphasis Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.4 { + iface MIXER + name 'Capture Polarity' + value Normal + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 Normal + item.1 'L Invert' + item.2 'R Invert' + item.3 'L + R Invert' + } + } + control.5 { + iface MIXER + name 'Left Mixer Left Bypass Volume' + value 0 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 7' + dbmin -1500 + dbmax 600 + dbvalue.0 -1500 + } + } + control.6 { + iface MIXER + name 'Left Mixer Right Bypass Volume' + value 2 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 7' + dbmin -1500 + dbmax 600 + dbvalue.0 -900 + } + } + control.7 { + iface MIXER + name 'Right Mixer Left Bypass Volume' + value 2 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 7' + dbmin -1500 + dbmax 600 + dbvalue.0 -900 + } + } + control.8 { + iface MIXER + name 'Right Mixer Right Bypass Volume' + value 0 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 7' + dbmin -1500 + dbmax 600 + dbvalue.0 -1500 + } + } + control.9 { + iface MIXER + name 'PCM Volume' + value.0 185 + value.1 185 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 192' + dbmin -9600 + dbmax 0 + dbvalue.0 -350 + dbvalue.1 -350 + } + } + control.10 { + iface MIXER + name 'Output 1 Playback Volume' + value.0 33 + value.1 33 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 36' + dbmin -3000 + dbmax 600 + dbvalue.0 300 + dbvalue.1 300 + } + } + control.11 { + iface MIXER + name 'Output 2 Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 36' + dbmin -3000 + dbmax 600 + dbvalue.0 -3000 + dbvalue.1 -3000 + } + } + control.12 { + iface MIXER + name 'Mic PGA Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 8' + dbmin 0 + dbmax 2400 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.13 { + iface MIXER + name 'Differential Mux' + value 'Line 1' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Line 1' + item.1 'Line 2' + } + } + control.14 { + iface MIXER + name Route + value Stereo + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 Stereo + item.1 'Mono (Left)' + item.2 'Mono (Right)' + item.3 'Digital Mono' + } + } + control.15 { + iface MIXER + name 'Left PGA Mux' + value 'Line 1' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Line 1' + item.1 'Line 2' + item.2 'Line 3' + item.3 Differential + } + } + control.16 { + iface MIXER + name 'Right PGA Mux' + value 'Line 1' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Line 1' + item.1 'Line 2' + item.2 'Line 3' + item.3 Differential + } + } + control.17 { + iface MIXER + name 'Left Line Mux' + value 'Line 1' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Line 1' + item.1 'Line 2' + item.2 PGA + item.3 Differential + } + } + control.18 { + iface MIXER + name 'Right Line Mux' + value 'Line 1' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Line 1' + item.1 'Line 2' + item.2 PGA + item.3 Differential + } + } + control.19 { + iface MIXER + name 'Left Mixer Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.20 { + iface MIXER + name 'Left Mixer Left Bypass Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.21 { + iface MIXER + name 'Left Mixer Right Playback Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.22 { + iface MIXER + name 'Left Mixer Right Bypass Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.23 { + iface MIXER + name 'Right Mixer Left Playback Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.24 { + iface MIXER + name 'Right Mixer Left Bypass Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.25 { + iface MIXER + name 'Right Mixer Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.26 { + iface MIXER + name 'Right Mixer Right Bypass Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } +} diff --git a/board/loongson/ls2k300/rootfs_overlay/var/lock/.gitkeep b/board/loongson/ls2k300/rootfs_overlay/var/lock/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/configs/loongson2k300_defconfig b/configs/loongson2k300_defconfig index 69439b76..b0b4c185 100644 --- a/configs/loongson2k300_defconfig +++ b/configs/loongson2k300_defconfig @@ -24,6 +24,7 @@ BR2_PACKAGE_FFMPEG_GPL=y BR2_PACKAGE_FFMPEG_FFPLAY=y BR2_PACKAGE_FFMPEG_FFPROBE=y BR2_PACKAGE_FFMPEG_POSTPROC=y +BR2_PACKAGE_MPV=y BR2_PACKAGE_V4L2GRAB=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_ZIP=y @@ -64,6 +65,7 @@ BR2_PACKAGE_SDL_NET=y BR2_PACKAGE_SDL_SOUND=y BR2_PACKAGE_SDL_SOUND_PLAYSOUND=y BR2_PACKAGE_SDL2_DIRECTFB=y +BR2_PACKAGE_SDL2_KMSDRM=y BR2_PACKAGE_SDL2_GFX=y BR2_PACKAGE_SDL2_IMAGE=y BR2_PACKAGE_SDL2_MIXER=y diff --git a/configs/loongson2k300_mini_dp_defconfig b/configs/loongson2k300_mini_dp_defconfig index 86ad0e29..07b4b1ee 100644 --- a/configs/loongson2k300_mini_dp_defconfig +++ b/configs/loongson2k300_mini_dp_defconfig @@ -20,12 +20,12 @@ BR2_ROOTFS_OVERLAY="board/loongson/ls2k300/rootfs_overlay" BR2_PACKAGE_ALSA_UTILS=y BR2_PACKAGE_ALSA_UTILS_AMIXER=y BR2_PACKAGE_ALSA_UTILS_APLAY=y -BR2_PACKAGE_FFMPEG=y BR2_PACKAGE_FFMPEG_GPL=y BR2_PACKAGE_FFMPEG_FFPLAY=y BR2_PACKAGE_FFMPEG_FFPROBE=y BR2_PACKAGE_FFMPEG_AVRESAMPLE=y BR2_PACKAGE_FFMPEG_POSTPROC=y +BR2_PACKAGE_MPV=y BR2_PACKAGE_V4L2GRAB=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_ZIP=y @@ -53,6 +53,7 @@ BR2_PACKAGE_FBDUMP=y BR2_PACKAGE_FBGRAB=y BR2_PACKAGE_FBSET=y BR2_PACKAGE_PSPLASH=y +BR2_PACKAGE_SDL2_KMSDRM=y BR2_PACKAGE_SDL2_GFX=y BR2_PACKAGE_SDL2_IMAGE=y BR2_PACKAGE_SDL2_MIXER=y @@ -87,6 +88,7 @@ BR2_PACKAGE_LINUX_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_8265=y BR2_PACKAGE_LINUX_FIRMWARE_RTL_RTW88=y BR2_PACKAGE_DT_UTILS=y +BR2_PACKAGE_HDPARM=y BR2_PACKAGE_I2C_TOOLS=y BR2_PACKAGE_IOSTAT=y BR2_PACKAGE_LINUX_SERIAL_TEST=y @@ -109,6 +111,7 @@ BR2_PACKAGE_PYTHON3_XZ=y BR2_PACKAGE_PYTHON_CANOPEN=y BR2_PACKAGE_PYTHON_FLASK=y BR2_PACKAGE_PYTHON_MODBUS_TK=y +BR2_PACKAGE_PYTHON_PAHO_MQTT=y BR2_PACKAGE_PYTHON_PIP=y BR2_PACKAGE_PYTHON_PYGAME=y BR2_PACKAGE_PYTHON_PYGAME_IMAGE=y @@ -187,6 +190,7 @@ BR2_PACKAGE_LIGHTTPD_BZIP2=y BR2_PACKAGE_LIGHTTPD_PCRE=y BR2_PACKAGE_LIGHTTPD_WEBDAV=y BR2_PACKAGE_LRZSZ=y +BR2_PACKAGE_MJPG_STREAMER=y BR2_PACKAGE_NETWORK_MANAGER=y BR2_PACKAGE_NETWORK_MANAGER_TUI=y BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER=y diff --git a/configs/loongson2p500_defconfig b/configs/loongson2p500_defconfig index 88410d5d..8a3ee1d5 100644 --- a/configs/loongson2p500_defconfig +++ b/configs/loongson2p500_defconfig @@ -287,7 +287,7 @@ BR2_PACKAGE_LS3_SYSTEM_TOOL=y BR2_PACKAGE_LS3_SYSTEM_TOOL_QT=y BR2_PACKAGE_LOONGSON_RESIZE=y BR2_PACKAGE_LOONGSON_KERNEL=y -BR2_PACKAGE_LOONGSON_KERNEL_PATH="~/tmp/bsp/test/2P500/kernel/all/" +BR2_PACKAGE_LOONGSON_KERNEL_PATH="~/tmp/bsp/test/2P500/kernel/" BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="512M" diff --git a/dl/libgpiod/libgpiod-1.6.3.tar.xz b/dl/libgpiod/libgpiod-1.6.3.tar.xz new file mode 100644 index 00000000..54434080 Binary files /dev/null and b/dl/libgpiod/libgpiod-1.6.3.tar.xz differ diff --git a/dl/libgpiod/libgpiod-1.6.5.tar.xz b/dl/libgpiod/libgpiod-1.6.5.tar.xz new file mode 100644 index 00000000..d4f03e26 Binary files /dev/null and b/dl/libgpiod/libgpiod-1.6.5.tar.xz differ diff --git a/dl/mjpg-streamer/mjpg-streamer-310b29f4a94c46652b20c4b7b6e5cf24e532af39.tar.gz b/dl/mjpg-streamer/mjpg-streamer-310b29f4a94c46652b20c4b7b6e5cf24e532af39.tar.gz new file mode 100644 index 00000000..930bca7d Binary files /dev/null and b/dl/mjpg-streamer/mjpg-streamer-310b29f4a94c46652b20c4b7b6e5cf24e532af39.tar.gz differ diff --git a/package/Config.in b/package/Config.in index ff138265..8c90ba07 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2541,6 +2541,7 @@ menu "Loongson board software" source "package/loongson_resize/Config.in" source "package/loongson_kernel/Config.in" source "package/loongson_build_essential/Config.in" + source "package/mp4_sample/Config.in" endmenu endmenu diff --git a/package/gstreamer1/gstreamer1/0001-add-loongarch.patch b/package/gstreamer1/gstreamer1/0001-add-loongarch.patch new file mode 100644 index 00000000..2944f508 --- /dev/null +++ b/package/gstreamer1/gstreamer1/0001-add-loongarch.patch @@ -0,0 +1,13 @@ +diff --git a/gst/gstconfig.h.in b/gst/gstconfig.h.in +index cc5794e..3e14d7b 100644 +--- a/gst/gstconfig.h.in ++++ b/gst/gstconfig.h.in +@@ -124,7 +124,7 @@ + * http://docs.oracle.com/cd/E19205-01/820-4155/c++_faq.html#Vers6 + * https://software.intel.com/en-us/node/583402 + */ +-#if defined(__alpha__) || defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__bfin) || defined(__hppa__) || defined(__nios2__) || defined(__MICROBLAZE__) || defined(__mips__) || defined(__or1k__) || defined(__sh__) || defined(__SH4__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_ARM64) || defined(_M_IA64) || defined(__xtensa__) || defined(__e2k__) || defined(__riscv) ++#if defined(__alpha__) || defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__bfin) || defined(__hppa__) || defined(__nios2__) || defined(__MICROBLAZE__) || defined(__mips__) || defined(__or1k__) || defined(__sh__) || defined(__SH4__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(__loongarch__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_ARM64) || defined(_M_IA64) || defined(__xtensa__) || defined(__e2k__) || defined(__riscv) + # define GST_HAVE_UNALIGNED_ACCESS 0 + #elif defined(__i386__) || defined(__i386) || defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__powerpc__) || defined(__powerpc64__) || defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || defined(__s390__) || defined(__s390x__) || defined(__zarch__) + # define GST_HAVE_UNALIGNED_ACCESS 1 diff --git a/package/libgpiod/libgpiod.hash b/package/libgpiod/libgpiod.hash index f0803cab..472a4457 100644 --- a/package/libgpiod/libgpiod.hash +++ b/package/libgpiod/libgpiod.hash @@ -1,4 +1,5 @@ # From https://www.kernel.org/pub/software/libs/libgpiod/sha256sums.asc sha256 841be9d788f00bab08ef22c4be5c39866f0e46cb100a3ae49ed816ac9c5dddc7 libgpiod-1.6.3.tar.xz +sha256 ae280f697bf035a1fb780c9972e5c81d0d2712b7ab6124fb3fba24619daa72bc libgpiod-1.6.5.tar.xz # Hash for license file sha256 ce64d5f7b49ea6d80fdb6d4cdee6839d1a94274f7493dc797c3b55b65ec8e9ed COPYING diff --git a/package/libgpiod/libgpiod.mk b/package/libgpiod/libgpiod.mk index 35d003fa..f669643b 100644 --- a/package/libgpiod/libgpiod.mk +++ b/package/libgpiod/libgpiod.mk @@ -6,7 +6,7 @@ # Be careful when bumping versions. # Dependency on kernel header versions may change. -LIBGPIOD_VERSION = 1.6.3 +LIBGPIOD_VERSION = 1.6.5 LIBGPIOD_SOURCE = libgpiod-$(LIBGPIOD_VERSION).tar.xz LIBGPIOD_SITE = https://www.kernel.org/pub/software/libs/libgpiod LIBGPIOD_LICENSE = LGPL-2.1+ diff --git a/package/loongson_resize/loongson_resize.tar.gz b/package/loongson_resize/loongson_resize.tar.gz index 9326763f..be1311e3 100644 Binary files a/package/loongson_resize/loongson_resize.tar.gz and b/package/loongson_resize/loongson_resize.tar.gz differ diff --git a/package/mjpg-streamer/mjpg-streamer.hash b/package/mjpg-streamer/mjpg-streamer.hash index 63dcdb9f..91070767 100644 --- a/package/mjpg-streamer/mjpg-streamer.hash +++ b/package/mjpg-streamer/mjpg-streamer.hash @@ -1,3 +1,4 @@ # Locally computed sha256 5b427b07c03c2c0468cc782daf1510d315141170246828fcbb7c07f927879973 mjpg-streamer-5a6e0a2db163e6ae9461552b59079870d0959340.tar.gz +sha256 eb4de7fed9f8b15ee6d8ca2b0417aff2854cd018582b7090e28eb0aaa19bc808 mjpg-streamer-310b29f4a94c46652b20c4b7b6e5cf24e532af39.tar.gz sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 mjpg-streamer-experimental/LICENSE diff --git a/package/mjpg-streamer/mjpg-streamer.mk b/package/mjpg-streamer/mjpg-streamer.mk index 46f3f501..a5b348c1 100644 --- a/package/mjpg-streamer/mjpg-streamer.mk +++ b/package/mjpg-streamer/mjpg-streamer.mk @@ -4,7 +4,7 @@ # ################################################################################ -MJPG_STREAMER_VERSION = 5a6e0a2db163e6ae9461552b59079870d0959340 +MJPG_STREAMER_VERSION = 310b29f4a94c46652b20c4b7b6e5cf24e532af39 MJPG_STREAMER_SITE = $(call github,jacksonliam,mjpg-streamer,$(MJPG_STREAMER_VERSION)) MJPG_STREAMER_SUBDIR = mjpg-streamer-experimental MJPG_STREAMER_LICENSE = GPL-2.0+ @@ -46,4 +46,6 @@ else MJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_VIEWER=OFF endif +MJPG_STREAMER_CONF_OPTS += -DENABLE_HTTP_MANAGEMENT=ON + $(eval $(cmake-package)) diff --git a/package/mp4_sample/Config.in b/package/mp4_sample/Config.in new file mode 100644 index 00000000..f1c83a96 --- /dev/null +++ b/package/mp4_sample/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_MP4_SAMPLE + bool "sample mp4 video" + depends on BR2_PACKAGE_MPV + default y + help + this selection will copy sample mp4 video to /root/mp4_sample + diff --git a/package/mp4_sample/mp4_sample.mk b/package/mp4_sample/mp4_sample.mk new file mode 100644 index 00000000..50881e90 --- /dev/null +++ b/package/mp4_sample/mp4_sample.mk @@ -0,0 +1,23 @@ +################################################################################ +# +# mp4_sample +# +################################################################################ + +MP4_SAMPLE_SITE = $(TOPDIR)/package/mp4_sample/mp4_sample_video.tar.gz +MP4_SAMPLE_SITE_METHOD = file + +define MP4_SAMPLE_EXTRACT_CMDS + tar -zxf $(MP4_SAMPLE_SITE) -C $(@D) +endef + +define MP4_SAMPLE_BUILD_CMDS + mkdir -p $(TARGET_DIR)/root/mp4_sample_video +endef + +define MP4_SAMPLE_INSTALL_TARGET_CMDS + cd $(@D) && cp ./*.mp4 $(TARGET_DIR)/root/mp4_sample_video -a +endef + +$(eval $(generic-package)) + diff --git a/package/mp4_sample/mp4_sample_video.tar.gz b/package/mp4_sample/mp4_sample_video.tar.gz new file mode 100644 index 00000000..681cfbf3 Binary files /dev/null and b/package/mp4_sample/mp4_sample_video.tar.gz differ diff --git a/package/qt5/qt5script/0002-fix-lose-precision-bug-on-loongarch.patch b/package/qt5/qt5script/0002-fix-lose-precision-bug-on-loongarch.patch new file mode 100644 index 00000000..8cc8e77f --- /dev/null +++ b/package/qt5/qt5script/0002-fix-lose-precision-bug-on-loongarch.patch @@ -0,0 +1,22 @@ +diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h +index 7584c52..1d632c1 100644 +--- a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h ++++ b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h +@@ -490,7 +490,7 @@ namespace JSC { + u.asBits.tag = CellTag; + else + u.asBits.tag = EmptyValueTag; +- u.asBits.payload = reinterpret_cast(ptr); ++ u.asBits.payload = reinterpret_cast(ptr); + #if ENABLE(JSC_ZOMBIES) + ASSERT(!isZombie()); + #endif +@@ -502,7 +502,7 @@ namespace JSC { + u.asBits.tag = CellTag; + else + u.asBits.tag = EmptyValueTag; +- u.asBits.payload = reinterpret_cast(const_cast(ptr)); ++ u.asBits.payload = reinterpret_cast(const_cast(ptr)); + #if ENABLE(JSC_ZOMBIES) + ASSERT(!isZombie()); + #endif