diff --git a/README.md b/README.md index 7c1e29414e98477a5d37088776bd5eeebb6af189..4fad48c5a02ae44280fea1a52682950342314c7a 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,11 @@ Buildroot被设计为在x86 Linux系统上运行,结合其他因素,本仓 `$ sudo apt install debootstrap qemu-user-static binfmt-support debian-archive-keyring` 对于debian12系统,需要设置PATH环境变量:`PATH=$PATH:/usr/sbin` -## 下载Phytium Pi OS -`$ git clone https://gitee.com/phytium_embedded/phytium-pi-os` +## 下载Phytium Pi OS并切换到2024.02分支 +``` +$ git clone https://gitee.com/phytium_embedded/phytium-pi-os +$ git checkout -b 2024.02 origin/2024.02 +``` 克隆后,将会生成phytium-pi-os目录,我们称之为源码根目录,若无另外说明,下面的操作命令都是基于该源码根目录进行描述的 # 查看支持的defconfig 为飞腾派构建的文件系统的配置文件位于configs目录。 @@ -304,4 +307,4 @@ $ make ``` # FAQ -1、关于phytium pi vpu的包请咨询飞腾技术支持或FAE。 +1、关于phytium pi vpu的包请咨询linan1284@phytium.com.cn。 diff --git a/board/phytium/common/debian-additional_packages_list b/board/phytium/common/debian-additional_packages_list index 9a4eccb6fff926ee26218580a3e6254f00df8f99..27e1f5bd623780088335a4f8d2b59e241a78d3a4 100644 --- a/board/phytium/common/debian-additional_packages_list +++ b/board/phytium/common/debian-additional_packages_list @@ -10,5 +10,5 @@ v4l-utils python3-gpiozero avahi-daemon lua5.1 luajit hardlink curl fake-hwclock dphys-swapfile apt-listchanges usb-modeswitch libmtp-runtime rsync htop man-db rng-tools \ ssh-import-id ethtool ntfs-3g pciutils udisks2 zip p7zip-full file \ cifs-utils mkvtoolnix wpasupplicant wireless-tools net-tools \ -vim locales network-manager jq git" +vim locales network-manager jq git libglib2.0-dev libxext-dev libxv-dev ffmpeg dkms" diff --git a/board/phytium/common/debian-package-installer b/board/phytium/common/debian-package-installer index 67e718647cf95fbf111d4cab51a59c8dd29674c1..eda6f5b68afe316cb2b4724ecb95b4e2ee527604 100755 --- a/board/phytium/common/debian-package-installer +++ b/board/phytium/common/debian-package-installer @@ -64,6 +64,8 @@ do_distrorfs_second_stage() { echo Installing $pkg ... DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install $pkg || exit 1 done + # remove plymouth + DEBIAN_FRONTEND=noninteractive apt -y remove plymouth || true echo 'root' >> /etc/deniedusers chmod 600 /etc/deniedusers echo 'auth required pam_listfile.so onerr=succeed item=user sense=deny file=/etc/deniedusers' >> /etc/pam.d/lightdm @@ -72,7 +74,6 @@ do_distrorfs_second_stage() { echo 'update-sink-proplist 1 device.description=Headphone' >> /etc/pulse/default.pa echo 'update-sink-proplist 0 device.description=HDMI' >> /etc/pulse/default.pa echo 'set-default-sink 1' >> /etc/pulse/default.pa - echo 'load-module module-switch-on-connect' >> /etc/pulse/default.pa # touch .desktop_firstrun touch /root/.desktop_firstlogin diff --git a/board/phytium/common/post-build.sh b/board/phytium/common/post-build.sh index 6b6db45bbce0690ada77f014ec9f0032b6653013..303de45f5df22bfe0d5b20a3cfd6a9def4f28535 100755 --- a/board/phytium/common/post-build.sh +++ b/board/phytium/common/post-build.sh @@ -10,12 +10,6 @@ main() ln -sf /lib/systemd/system/phytium-tee-supplicant.service $1/etc/systemd/system/sysinit.target.wants/phytium-tee-supplicant.service fi - # alsa UCM - if grep -Eq "^BR2_PACKAGE_PHYTIUM_DESKTOP_TOOLS=y$" ${BR2_CONFIG}; then - ln -sf ../../Phytium/es8336/es8336.conf $1/usr/share/alsa/ucm2/conf.d/simple-card/phytium,pe220x-i2s-audio.conf - ln -sf ../../Phytium/PMDK-I2S/PMDK-I2S.conf $1/usr/share/alsa/ucm2/conf.d/PMDK-I2S/PMDK-I2S.conf - fi - # zram if grep -Eq "^BR2_PACKAGE_PHYTIUM_ZRAM=y$" ${BR2_CONFIG}; then sudo chroot ${1} systemctl enable phytium-zram-config.service diff --git a/configs/phytiumpi_defconfig b/configs/phytiumpi_defconfig index 06eff6765aaf188f4b0776ec8356292b58348f1e..27c42006a6efd024602d39b6db62f11e58950774 100644 --- a/configs/phytiumpi_defconfig +++ b/configs/phytiumpi_defconfig @@ -34,7 +34,7 @@ BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_GIT=y BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://gitee.com/phytium_embedded/phytium-linux-kernel.git" # kernel 6.6 -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="4850d0096546d55b0bf9014e572598fd62523f5b" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-6.6_v3.1" BR2_LINUX_KERNEL_INTREE_DTS_NAME="phytium/phytiumpi_firefly" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_DEFCONFIG="phytium" @@ -74,3 +74,8 @@ BR2_PACKAGE_PHYTIUM_OTA=y # util-linux BR2_PACKAGE_UTIL_LINUX=y BR2_PACKAGE_UTIL_LINUX_BINARIES=y + +# install libgstximagesink.so from gstreamer +BR2_PACKAGE_XORG7=y +BR2_PACKAGE_GSTREAMER1=y +BR2_PACKAGE_GST1_PLUGINS_BASE=y diff --git a/configs/phytiumpi_desktop_defconfig b/configs/phytiumpi_desktop_defconfig index 9e34d7fc4d7c58c8d86eb60f36789c85edbebbc0..964efeaf8417c75c442ea10719d4116ea2ad53a2 100644 --- a/configs/phytiumpi_desktop_defconfig +++ b/configs/phytiumpi_desktop_defconfig @@ -34,7 +34,7 @@ BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_GIT=y BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://gitee.com/phytium_embedded/phytium-linux-kernel.git" # kernel 6.6 -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="4850d0096546d55b0bf9014e572598fd62523f5b" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-6.6_v3.1" BR2_LINUX_KERNEL_INTREE_DTS_NAME="phytium/phytiumpi_firefly" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_DEFCONFIG="phytium" @@ -76,3 +76,8 @@ BR2_PACKAGE_BUSYBOX=n # util-linux BR2_PACKAGE_UTIL_LINUX=y BR2_PACKAGE_UTIL_LINUX_BINARIES=y + +# install libgstximagesink.so from gstreamer +BR2_PACKAGE_XORG7=y +BR2_PACKAGE_GSTREAMER1=y +BR2_PACKAGE_GST1_PLUGINS_BASE=y diff --git a/configs/phytiumpi_linux_6.6_rt.config b/configs/phytiumpi_linux_6.6_rt.config index 13ad9a03a09b8874d67a7a5420436169a2a5f75a..3e20455fa2554ba1b5f1fa70fae0083662dcf5c8 100644 --- a/configs/phytiumpi_linux_6.6_rt.config +++ b/configs/phytiumpi_linux_6.6_rt.config @@ -1,2 +1,2 @@ # kernel 6.6-rt -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="20635251686c50c94eeea2e8a71a99fb59ee80df" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-6.6-rt_v3.1" diff --git a/configs/phytiumpi_xenomai_cobalt_6.6.config b/configs/phytiumpi_xenomai_cobalt_6.6.config index d070ac097322efb854af4e08d5f974c90d671dd3..a1ac2af397f8114f98d80c712b117d2f7ed557cb 100644 --- a/configs/phytiumpi_xenomai_cobalt_6.6.config +++ b/configs/phytiumpi_xenomai_cobalt_6.6.config @@ -1,6 +1,6 @@ # cobalt kernel 6.6.y-dovetail BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://gitee.com/phytium_embedded/linux-kernel-xenomai.git" -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="c096fe6eee82d7c2035b8ae03567eead94f63149" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-6.6.63-dovetail2_v3.1" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64/configs/cobalt.config" # xenomai libraries and tools BR2_PACKAGE_XENOMAI=y diff --git a/configs/phytiumpi_xenomai_mercury_6.6.config b/configs/phytiumpi_xenomai_mercury_6.6.config index 7458595d5908fc86d16d49f34c3d42769c06e09b..d9f3e957a46220568abe885560acb9548597fa69 100644 --- a/configs/phytiumpi_xenomai_mercury_6.6.config +++ b/configs/phytiumpi_xenomai_mercury_6.6.config @@ -1,5 +1,5 @@ # kernel 6.6-rt -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="20635251686c50c94eeea2e8a71a99fb59ee80df" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-6.6-rt_v3.1" # xenomai libraries and tools BR2_PACKAGE_XENOMAI=y BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL=y diff --git a/package/gstreamer1/gst1-plugins-base/Config.in b/package/gstreamer1/gst1-plugins-base/Config.in index df10774ac7cd41057ef11ce2753fbb1d11153061..ba84a7fa756f56d62b7f9a41072e700614aaa0a7 100644 --- a/package/gstreamer1/gst1-plugins-base/Config.in +++ b/package/gstreamer1/gst1-plugins-base/Config.in @@ -1,8 +1,5 @@ menuconfig BR2_PACKAGE_GST1_PLUGINS_BASE bool "gst1-plugins-base" - select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 - select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7 - select BR2_PACKAGE_XLIB_LIBXV if BR2_PACKAGE_XORG7 help A basic set of well-supported plug-ins for GStreamer. diff --git a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.hash b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.hash index 060a871b954b256e09205eadf95a99e0b7896cde..e0b04da9147d622fe85a400dcb6ef76154ba7262 100644 --- a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.hash +++ b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.hash @@ -1,3 +1,5 @@ # From https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.22.9.tar.xz.sha256sum sha256 fac3e0dd2d8e9370388b34bf8c21b89d5f63bc3cfc12cd7fdc8fc6c1cba03334 gst-plugins-base-1.22.9.tar.xz +# From https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.22.12.tar.xz.sha256sum +sha256 73cfadc3a6ffe77ed974cfd6fb391c605e4531f48db21dd6b9f42b8cb69bd8c1 gst-plugins-base-1.22.12.tar.xz sha256 ad2eec519ebd4b5df86ea84dff24ae3bfa2edea846a703b58902dd221ae375db COPYING diff --git a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk index 512e3fdee21d27a8061d3e5324f7bf3163d43c04..005f22add86377ce5e5c5e9cc5f79e1af68cd571 100644 --- a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +++ b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk @@ -4,7 +4,7 @@ # ################################################################################ -GST1_PLUGINS_BASE_VERSION = 1.22.9 +GST1_PLUGINS_BASE_VERSION = 1.22.12 GST1_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST1_PLUGINS_BASE_VERSION).tar.xz GST1_PLUGINS_BASE_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-base GST1_PLUGINS_BASE_INSTALL_STAGING = YES @@ -231,7 +231,9 @@ GST1_PLUGINS_BASE_DEPENDENCIES += zlib endif ifeq ($(BR2_PACKAGE_XORG7),y) +ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y) GST1_PLUGINS_BASE_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXv +endif GST1_PLUGINS_BASE_CONF_OPTS += \ -Dx11=enabled \ -Dxshm=enabled \ @@ -292,4 +294,11 @@ else GST1_PLUGINS_BASE_CONF_OPTS += -Dvorbis=disabled endif +# Only reinstall libgstximagesink.so for custom skeleton +ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y) +define GST1_PLUGINS_BASE_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/build/sys/ximage/libgstximagesink.so $(TARGET_DIR)/usr/lib/aarch64-linux-gnu/gstreamer-1.0/ +endef +endif + $(eval $(meson-package)) diff --git a/package/gstreamer1/gstreamer1/Config.in b/package/gstreamer1/gstreamer1/Config.in index 5609d8699da040f20949b92304d064a226e76cbc..8d56dc7c9ce3255e3b4e5cd18b208ac512a826fe 100644 --- a/package/gstreamer1/gstreamer1/Config.in +++ b/package/gstreamer1/gstreamer1/Config.in @@ -7,7 +7,6 @@ config BR2_PACKAGE_GSTREAMER1 depends on BR2_USE_WCHAR # glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 - select BR2_PACKAGE_LIBGLIB2 help GStreamer is an open source multimedia framework. This 1.x version of Gstreamer is incompatible with Gstreamer 0.10.x. diff --git a/package/gstreamer1/gstreamer1/gstreamer1.hash b/package/gstreamer1/gstreamer1/gstreamer1.hash index b6ed001eb383d5013ca060c3dd7dd2be20abc53e..39146135955041568cc71506d3c3ccebc175137e 100644 --- a/package/gstreamer1/gstreamer1/gstreamer1.hash +++ b/package/gstreamer1/gstreamer1/gstreamer1.hash @@ -1,3 +1,5 @@ # From https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.22.9.tar.xz.sha256sum sha256 1e7124d347e8cdc80f08ec1d370c201be513002af1102bb20e83c5279cb48ebd gstreamer-1.22.9.tar.xz +# From https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.22.12.tar.xz.sha256sum +sha256 ac352f3d02caa67f3b169daa9aa78b04dea0fc08a727de73cb28d89bd54c6f61 gstreamer-1.22.12.tar.xz sha256 ad2eec519ebd4b5df86ea84dff24ae3bfa2edea846a703b58902dd221ae375db COPYING diff --git a/package/gstreamer1/gstreamer1/gstreamer1.mk b/package/gstreamer1/gstreamer1/gstreamer1.mk index 5b9125e62a9c2a8ca17e7e48ab5908be816f3442..ebc807a7c30d356dc49372e7a0154f8e1eece6f7 100644 --- a/package/gstreamer1/gstreamer1/gstreamer1.mk +++ b/package/gstreamer1/gstreamer1/gstreamer1.mk @@ -4,7 +4,7 @@ # ################################################################################ -GSTREAMER1_VERSION = 1.22.9 +GSTREAMER1_VERSION = 1.22.12 GSTREAMER1_SOURCE = gstreamer-$(GSTREAMER1_VERSION).tar.xz GSTREAMER1_SITE = https://gstreamer.freedesktop.org/src/gstreamer GSTREAMER1_INSTALL_STAGING = YES @@ -12,6 +12,9 @@ GSTREAMER1_LICENSE_FILES = COPYING GSTREAMER1_LICENSE = LGPL-2.1+ GSTREAMER1_CPE_ID_VENDOR = gstreamer_project GSTREAMER1_CPE_ID_PRODUCT = gstreamer +ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y) +GSTREAMER1_INSTALL_TARGET = NO +endif GSTREAMER1_CONF_OPTS = \ -Dexamples=disabled \ @@ -34,11 +37,16 @@ GSTREAMER1_DEPENDENCIES = \ host-bison \ host-flex \ host-pkgconf \ - libglib2 \ $(if $(BR2_PACKAGE_LIBUNWIND),libunwind) \ $(if $(BR2_PACKAGE_VALGRIND),valgrind) \ $(TARGET_NLS_DEPENDENCIES) +ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y) +GSTREAMER1_DEPENDENCIES += libglib2 +else +GSTREAMER1_DEPENDENCIES += host-libglib2 +endif + ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) GSTREAMER1_CONF_OPTS += -Dintrospection=enabled GSTREAMER1_DEPENDENCIES += gobject-introspection diff --git a/package/igh-ethercat/igh-ethercat.mk b/package/igh-ethercat/igh-ethercat.mk index 07052b26c7302a0639195206a809125e15b54189..6a163431a836eb80ef198aa971c548f29ac0eea8 100644 --- a/package/igh-ethercat/igh-ethercat.mk +++ b/package/igh-ethercat/igh-ethercat.mk @@ -4,7 +4,7 @@ # ################################################################################ -IGH_ETHERCAT_VERSION = dbbd80fa4bf93d2cc3a9ffc6623f678b1092a1fa +IGH_ETHERCAT_VERSION = stable-1.6_v3.1 IGH_ETHERCAT_SITE = https://gitee.com/phytium_embedded/ether-cat.git IGH_ETHERCAT_SITE_METHOD = git IGH_ETHERCAT_LICENSE = GPL-2.0 (IgH EtherCAT master), LGPL-2.1 (libraries) diff --git a/package/jailhouse/jailhouse.mk b/package/jailhouse/jailhouse.mk index 1793438adda74ce1cd82dfa6496d2da1c437ba7f..a509a8b92e4306fca83136e2e4bcf262e78fb38b 100644 --- a/package/jailhouse/jailhouse.mk +++ b/package/jailhouse/jailhouse.mk @@ -4,7 +4,7 @@ # ################################################################################ -JAILHOUSE_VERSION = 1581a8ceaaa1f0a4ec6ea95b6dca3ba5f4e62ba5 +JAILHOUSE_VERSION = jailhouse_v2.2 JAILHOUSE_SITE = https://gitee.com/phytium_embedded/phytium-jailhouse.git JAILHOUSE_SITE_METHOD = git JAILHOUSE_LICENSE = GPL-2.0 diff --git a/package/phytium-desktop-tools/phytium-desktop-tools.mk b/package/phytium-desktop-tools/phytium-desktop-tools.mk index 20d994e1bdb4484a0a8c2abed5591bc6bae5dd69..fb2cccadd7323352ae409e53a8c2ab12481cd63e 100644 --- a/package/phytium-desktop-tools/phytium-desktop-tools.mk +++ b/package/phytium-desktop-tools/phytium-desktop-tools.mk @@ -15,18 +15,12 @@ define PHYTIUM_DESKTOP_TOOLS_INSTALL_TARGET_CMDS mkdir -p $(TARGET_DIR)/usr/share/lightdm/lightdm-gtk-greeter.conf.d/ mkdir -p $(TARGET_DIR)/usr/share/desktop-base/profiles/xdg-config/xfce4/xfconf/xfce-perchannel-xml/ mkdir -p $(TARGET_DIR)/var/lib/alsa/ - mkdir -p $(TARGET_DIR)/usr/share/alsa/ucm2/ - mkdir -p $(TARGET_DIR)/usr/share/alsa/ucm2/conf.d/simple-card/ - mkdir -p $(TARGET_DIR)/usr/share/alsa/ucm2/conf.d/PMDK-I2S/ mkdir -p $(TARGET_DIR)/usr/local/bin/ mkdir -p $(TARGET_DIR)/etc/udev/rules.d/ $(INSTALL) -m 777 -D $(@D)/dark.jpg $(TARGET_DIR)/usr/share/images/desktop-base/ $(INSTALL) -m 755 -D $(@D)/01_debian.conf $(TARGET_DIR)/usr/share/lightdm/lightdm-gtk-greeter.conf.d/ $(INSTALL) -m 755 -D $(@D)/xfce4-desktop.xml $(TARGET_DIR)/usr/share/desktop-base/profiles/xdg-config/xfce4/xfconf/xfce-perchannel-xml/ $(INSTALL) -m 644 -D $(@D)/asound.state $(TARGET_DIR)/var/lib/alsa/ - cp -rf $(@D)/Phytium/ $(TARGET_DIR)/usr/share/alsa/ucm2/ - $(INSTALL) -m 755 -D $(@D)/switch_to_headphone.sh $(TARGET_DIR)/usr/bin/ - $(INSTALL) -m 644 -D $(@D)/sound_output_device_switching.desktop $(TARGET_DIR)/usr/share/alsa/ucm2/ $(INSTALL) -m 755 -D $(@D)/auto_resolution.sh $(TARGET_DIR)/usr/local/bin/ $(INSTALL) -m 644 -D $(@D)/99-monitor-hotplug.rules $(TARGET_DIR)/etc/udev/rules.d/ endef diff --git a/package/phytium-desktop-tools/src/Phytium/PMDK-I2S/HiFi.conf b/package/phytium-desktop-tools/src/Phytium/PMDK-I2S/HiFi.conf deleted file mode 100644 index 1845c10c311a17b3fdcf20b0def5955c829b0c01..0000000000000000000000000000000000000000 --- a/package/phytium-desktop-tools/src/Phytium/PMDK-I2S/HiFi.conf +++ /dev/null @@ -1,16 +0,0 @@ -SectionDevice."HDMI Audio" { - Comment "HDMI Audio" - - EnableSequence [ - ] - - DisableSequence [ - ] - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},0" - JackControl "HDMI/DP,pcm=0 Jack" - } -} - diff --git a/package/phytium-desktop-tools/src/Phytium/PMDK-I2S/PMDK-I2S.conf b/package/phytium-desktop-tools/src/Phytium/PMDK-I2S/PMDK-I2S.conf deleted file mode 100644 index 14a3a45ed4dd0ce931e83a3fcb4a599f0b1b0e23..0000000000000000000000000000000000000000 --- a/package/phytium-desktop-tools/src/Phytium/PMDK-I2S/PMDK-I2S.conf +++ /dev/null @@ -1,6 +0,0 @@ -Syntax 3 - -SectionUseCase."HiFi" { - File "HiFi.conf" - Comment "Play HiFi quality voice." -} diff --git a/package/phytium-desktop-tools/src/Phytium/es8336/HiFi.conf b/package/phytium-desktop-tools/src/Phytium/es8336/HiFi.conf deleted file mode 100644 index e5295f0cb36bcd9d9b8197f833974e7ca2e4c1a4..0000000000000000000000000000000000000000 --- a/package/phytium-desktop-tools/src/Phytium/es8336/HiFi.conf +++ /dev/null @@ -1,31 +0,0 @@ -SectionDevice."Headphones" { - Comment "Headphones" - - EnableSequence [ - ] - - DisableSequence [ - ] - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},0" - JackControl "Headphones Jack" - } -} - -SectionDevice."Microphone" { - Comment "Microphone" - - EnableSequence [ - cset "name='Differential Mux' lin2-rin2" - ] - - DisableSequence [ - ] - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},0" - } -} diff --git a/package/phytium-desktop-tools/src/Phytium/es8336/es8336.conf b/package/phytium-desktop-tools/src/Phytium/es8336/es8336.conf deleted file mode 100644 index 14a3a45ed4dd0ce931e83a3fcb4a599f0b1b0e23..0000000000000000000000000000000000000000 --- a/package/phytium-desktop-tools/src/Phytium/es8336/es8336.conf +++ /dev/null @@ -1,6 +0,0 @@ -Syntax 3 - -SectionUseCase."HiFi" { - File "HiFi.conf" - Comment "Play HiFi quality voice." -} diff --git a/package/phytium-desktop-tools/src/sound_output_device_switching.desktop b/package/phytium-desktop-tools/src/sound_output_device_switching.desktop deleted file mode 100644 index 412b500d4556ae26a2ce87cfd23d270bbd5a3234..0000000000000000000000000000000000000000 --- a/package/phytium-desktop-tools/src/sound_output_device_switching.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Type=Application -Exec=/usr/bin/switch_to_headphone.sh -Hidden=false -NoDisplay=false -X-GNOME-Autostart-enabled=true -Name=Switch to headphone Script -Comment=Starts switch to headphone script on login diff --git a/package/phytium-desktop-tools/src/switch_to_headphone.sh b/package/phytium-desktop-tools/src/switch_to_headphone.sh deleted file mode 100755 index 6b6902706350454e58e7a9d86e6e90c142b3e3fa..0000000000000000000000000000000000000000 --- a/package/phytium-desktop-tools/src/switch_to_headphone.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# Phytium phytiumpi script for automatically switching the sound output device. -# -# Copyright (c) 2024 Phytium Technology Co., Ltd. - - -while true; do - - FLAG="$(pactl list sinks | grep -oP '\[Out\] Headphones:.*?\bnot available\b' | grep -o 'not available')" - if pgrep -x pulseaudio > /dev/null - then - if [ -z "$FLAG" ]; then - pacmd set-default-sink 1 - fi - fi - sleep 2 - -done diff --git a/support/misc/cross-compilation.conf.in b/support/misc/cross-compilation.conf.in index a58ab553d0ee0dc1817fe4382ded36c7d9a0fcbf..20519ce73aa6db37e32c0a650c73958c5d23ff4a 100644 --- a/support/misc/cross-compilation.conf.in +++ b/support/misc/cross-compilation.conf.in @@ -27,7 +27,7 @@ cmake_prefix_path = '@STAGING_DIR@/usr/lib/cmake' [properties] needs_exe_wrapper = true sys_root = '@STAGING_DIR@' -pkg_config_libdir = '@STAGING_DIR@/usr/lib/pkgconfig:@STAGING_DIR@/usr/share/pkgconfig' +pkg_config_libdir = '@STAGING_DIR@/usr/lib/pkgconfig:@STAGING_DIR@/usr/share/pkgconfig:@STAGING_DIR@/usr/lib/aarch64-linux-gnu/pkgconfig' pkg_config_static = '@STATIC@' # enable meson build to pass a toolchain file to cmake cmake_toolchain_file = '@HOST_DIR@/share/buildroot/toolchainfile.cmake'