File mgag200-kmp.spec of Package mgag200-kmp

# norootforbuild

Name:          matrox-mgag200
BuildRequires: kernel-syms kmod
License:       GPL-2.0
Group:         System/Kernel
Summary:       Sample KMP with signed module
Version:       1.0
Release:       3
Source0:       %{name}-%{version}.tar.bz2
BuildRoot:     %{_tmppath}/%{name}-%{version}-build

# Required to sign module:  The -c option tells the macro to generate a
# suse-hello-ueficert subpackage that enrolls the certificate
# The _projectcert.crt certificate is provided by the build service
%kernel_module_package

%description
This package add support g200eh5 for the mgag200 module.

%prep
%setup
set -- *
mkdir source
mv "$@" source/
mkdir obj

%build
for flavor in %flavors_to_build; do
	rm -rf obj/$flavor
	cp -r source obj/$flavor
	make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
done

%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
	make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done

# The BRP_PESIGN_FILES variable must be set to a space separated list of
# directories or patterns matching files that need to be signed. If this
# package contained firmware files, we would use
# BRP_PESIGN_FILES='*.ko /lib/firmware'
#export BRP_PESIGN_FILES='*.ko'

%changelog
* Wed Feb 19 2025 David Chang <david.chang@hpe.com>
- Add support g200eh5

openSUSE Build Service is sponsored by