Skip to main content

Fedora Build ACS ACS Override Patch Kernel

Add RPM Fusion

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Install the dependencies to start building your own kernel.

<gsudo class="gr_ gr_36 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="36" data-gr-id="36">sudo</g> <g class="gr_ gr_37 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="37" data-gr-id="37">dnf</g> install <g class="gr_ gr_38 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="38" data-gr-id="38"><g class="gr_ gr_38 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="38" data-gr-id="38"><g class="gr_ gr_38 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="38" data-gr-id="38">fedpkg</g></g></g> fedora-packager <grpmdevtools class="gr_ gr_39 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="39" data-gr-id="39">rpmdevtools</g> <g class="gr_ gr_40 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="40" data-gr-id="40"><g class="gr_ gr_40 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="40" data-gr-id="40"><g class="gr_ gr_40 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="40" data-gr-id="40">ncurses</g></g></g>-ncurses-devel <gpesign class="gr_fedora-packager gr_35 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="35" data-gr-id="35">pesign</g> kojifedora-review

Set up your home build directory (if you haven't ever built any RPMs before)

<g class="gr_ gr_63 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="63" data-gr-id="63">rpmdev</g>-<g class="gr_ gr_64 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="64" data-gr-id="64"><g class="gr_ gr_64 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="64" data-gr-id="64"><g class="gr_ gr_64 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="64" data-gr-id="64">rpmdev-setuptree</g></g></g>

Install the kernel source and finish installing dependencies.

koji download-build --arch=src kernel-4.18.5-200.fc28
rpm -Uvh kernel-4.18.5-200.fc28.src.rpm
vim ~/rpmbuild/SPECS/kernel.spec

Add the two lines near the top of the spec file.

# Set buildid
%define buildid .acs

# ACS override patch
Patch1000: add-acs-override.patch

CreateCompile! This takes a newlong .src.rpm filetime.

rpmbuild -bsbb ~/rpmbuild/SPECS/kernel.spec

Upload

Install and build in copr

Create athe new buildpackages!

2018-12-07_01-00.png

Select upload

2018-12-07_01-01.png

Upload file located in
cd ~/rpmbuild/SRPMS/kernel-X.acs.fc28.src.RPMS/x86_64
sudo dnf update *.rpm

2018-12-07_01-02.png