Add support for BananaPiF3 RISC-V platform 37/317137/1 accepted/tizen_unified_dev accepted/tizen/unified/20240919.163717 accepted/tizen/unified/dev/20240920.060436 accepted/tizen/unified/x/20240920.053210 accepted/tizen/unified/x/20240929.082826
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 9 Apr 2024 13:00:23 +0000 (15:00 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 4 Sep 2024 09:57:29 +0000 (11:57 +0200)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I2655c33f69b026a555e2916d9bb3c9e68ca752c1

conf/tizen-modules-bpif3.conf [new file with mode: 0644]
packaging/linux-tizen-modules.spec

diff --git a/conf/tizen-modules-bpif3.conf b/conf/tizen-modules-bpif3.conf
new file mode 100644 (file)
index 0000000..7c82fcf
--- /dev/null
@@ -0,0 +1 @@
+logger
index 8d4a222ada178647493004fa7fd078d9e6e46bb2..c6c096fb87e262d3c0baf5168c69a57ed0540ba0 100644 (file)
@@ -33,6 +33,7 @@ BuildRequires:  %{buildarch}-rpi4-rt-linux-kernel-devel
 BuildRequires: riscv-qemu-linux-kernel-devel
 BuildRequires: riscv-visionfive2-linux-kernel-devel
 BuildRequires: riscv-lpi4a-linux-kernel-devel
+BuildRequires: riscv-bpif3-linux-kernel-devel
 %endif
 %description
 
@@ -90,6 +91,16 @@ Requires(post): coreutils
 Requires(post): findutils
 Requires(post): kmod-compat
 %description    lpi4a
+
+%package        bpif3
+Summary:        Tizen modules for BananaPiF3
+Requires:       %{buildarch}-bpif3-linux-kernel-modules
+AutoReqProv:    no
+Requires(post): bash
+Requires(post): coreutils
+Requires(post): findutils
+Requires(post): kmod-compat
+%description    bpif3
 %endif
 
 %prep
@@ -138,6 +149,10 @@ make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-riscv-v
 make -C kernel clean KERNELDIR=/boot/kernel/devel/kernel-devel-riscv-lpi4a
 make -C kernel KERNELDIR=/boot/kernel/devel/kernel-devel-riscv-lpi4a
 make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-riscv-lpi4a INSTALL_MOD_STRIP=1 INSTALL_MOD_DIR=extra
+
+make -C kernel clean KERNELDIR=/boot/kernel/devel/kernel-devel-riscv-bpif3
+make -C kernel KERNELDIR=/boot/kernel/devel/kernel-devel-riscv-bpif3
+make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-riscv-bpif3 INSTALL_MOD_STRIP=1 INSTALL_MOD_DIR=extra
 %endif
 
 %install
@@ -160,6 +175,7 @@ install -m 644 conf/tizen-modules-rpi4.conf %{buildroot}/%{KMOD_PATH}/modules-lo
 mkdir -p %{buildroot}/%{KMOD_PATH}/modules-load.d
 install -m 644 conf/tizen-modules-lpi4a.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
 install -m 644 conf/tizen-modules-visionfive2.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
+install -m 644 conf/tizen-modules-bpif3.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
 %endif
 
 %clean
@@ -184,6 +200,10 @@ RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
 %post lpi4a
 RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
 /sbin/depmod -a $RELEASEVERSION
+
+%post bpif3
+RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
+/sbin/depmod -a $RELEASEVERSION
 %endif
 
 %ifarch %{arm} aarch64
@@ -243,4 +263,11 @@ RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
 %{KMOD_PATH}/*-riscv-lpi4a/extra/zlogger/zlogger.ko
 %{KMOD_PATH}/modules-load.d/tizen-modules-lpi4a.conf
 
+%files bpif3
+%manifest %{name}.manifest
+%license COPYING
+%{KMOD_PATH}/*-riscv-bpif3/extra/logger.ko
+%{KMOD_PATH}/*-riscv-bpif3/extra/zlogger/zlogger.ko
+%{KMOD_PATH}/modules-load.d/tizen-modules-bpif3.conf
+
 %endif