Hi,

I wanted to build a Debian-kernel by applying Linux v4.14.13-rc1
patchset against linux (4.14.12-2) from Debian/unstable.
My system is a Debian/stretch AMD64.

I consulted the Debian-kernel handbook [1] to do this the "Debian way".

The patchset was extraxted as a series from
linux-stable-rc.git#linux-4.14.y and placed in an "upstream" directory
below debian/patches...

cd debian/patches
ls upstream/*.patch >> series

I commented "already applied-in-debian-kernel" or unwanted patches
(see below P.S.).

As I downgraded to use gcc-6 as default-compiler (gcc-7 is not
available in stretch, see [2]) and changed abiname, I executed...

./debian/bin/gencontrol.py

For a fast build I want to build a single-kernel-variant (here:
amd64_non_amd64)....

ARCH="amd64"
FEATURESET="none"
FLAVOUR="amd64"
SINGLE_KERNEL_VARIANT="${ARCH}_${FEATURESET}_${FLAVOUR}"

fakeroot make -f debian/rules.gen setup_$SINGLE_KERNEL_VARIANT

[1] recommends to use test-patches script...

LC_ALL=C bash ./debian/bin/test-patches -f amd64 -s none debian/patches/series

I couldn't invoke the script without passing -f and -s (none seems to
be default/fallback).
This is applying the patchset from debian/patches/series-rt.

Am I doing something wrong?
Is something wrong with the script?

As an alternative I tried...

LC_ALL=C debuild -S

...to see if the patches apply, they do.

Building linux-image and linux-headers-arch Debian packages...

MAX_JOBS=$(($(getconf _NPROCESSORS_ONLN)+1))
PARALLEL_MAKE_JOBS="$MAX_JOBS"
fakeroot make -j${PARALLEL_MAKE_JOBS} -f debian/rules.gen
binary-arch_$SINGLE_KERNEL_VARIANT

Generating missing linux-headers-common Debian package...

fakeroot make -f debian/rules.gen binary-indep_${FEATURESET}

Can you give me advices on how to test (and apply) a custom patchset
before building?
Any recommendation where to place it (existing directories, own
directory) and embed in an existing or own series file?

If you need furher informations, please let me know.
I can send you my dsc and debian-tarball is needed.

Thanks in advance.

Regards,
- Sedat -

[1] https://kernel-handbook.alioth.debian.org/ch-common-tasks.html
[2] 
https://anonscm.debian.org/cgit/kernel/linux.git/patch/?id=181f3cd32b3d76d75813a62b230c0ed0fd7e0812

P.S.: Extract of debian/patches/series
...
# Upstream patches from Linux-4.14.13-rc1
upstream/0001-x86-mm-Set-MODULES_END-to-0xffffffffff000000.patch
upstream/0002-x86-mm-Map-cpu_entry_area-at-the-same-place-on-4-5-l.patch
upstream/0003-x86-kaslr-Fix-the-vaddr_end-mess.patch
upstream/0004-x86-events-intel-ds-Use-the-proper-cache-flush-metho.patch
##upstream/0005-x86-tlb-Drop-the-_GPL-from-the-cpu_tlbstate-export.patch
upstream/0006-x86-alternatives-Add-missing-n-at-end-of-ALTERNATIVE.patch
upstream/0007-x86-pti-Rename-BUG_CPU_INSECURE-to-BUG_CPU_MELTDOWN.patch
upstream/0008-kernel-acct.c-fix-the-acct-needcheck-check-in-check_.patch
upstream/0009-mm-mprotect-add-a-cond_resched-inside-change_pmd_ran.patch
upstream/0010-mm-sparse.c-wrong-allocation-for-mem_section.patch
upstream/0011-userfaultfd-clear-the-vma-vm_userfaultfd_ctx-if-UFFD.patch
upstream/0012-btrfs-fix-refcount_t-usage-when-deleting-btrfs_delay.patch
upstream/0013-efi-capsule-loader-Reinstate-virtual-capsule-mapping.patch
upstream/0014-crypto-n2-cure-use-after-free.patch
upstream/0015-crypto-chacha20poly1305-validate-the-digest-size.patch
upstream/0016-crypto-pcrypt-fix-freeing-pcrypt-instances.patch
upstream/0017-crypto-chelsio-select-CRYPTO_GF128MUL.patch
upstream/0018-drm-i915-Disable-DC-states-around-GMBUS-on-GLK.patch
upstream/0019-drm-i915-Apply-Display-WA-1183-on-skl-kbl-and-cfl.patch
upstream/0020-sunxi-rsb-Include-OF-based-modalias-in-device-uevent.patch
upstream/0021-fscache-Fix-the-default-for-fscache_maybe_release_pa.patch
upstream/0022-x86-CPU-Avoid-unnecessary-IPIs-in-arch_freq_get_on_c.patch
upstream/0023-x86-CPU-Always-show-current-CPU-frequency-in-proc-cp.patch
upstream/0024-kernel-signal.c-protect-the-traced-SIGNAL_UNKILLABLE.patch
upstream/0025-kernel-signal.c-protect-the-SIGNAL_UNKILLABLE-tasks-.patch
upstream/0026-kernel-signal.c-remove-the-no-longer-needed-SIGNAL_U.patch
upstream/0027-iommu-arm-smmu-v3-Don-t-free-page-table-ops-twice.patch
upstream/0028-iommu-arm-smmu-v3-Cope-with-duplicated-Stream-IDs.patch
upstream/0029-ARC-uaccess-dont-use-l-gcc-inline-asm-constraint-mod.patch
upstream/0030-powerpc-mm-Fix-SEGV-on-mapped-region-to-return-SEGV_.patch
upstream/0031-Input-elantech-add-new-icbody-type-15.patch
upstream/0032-x86-microcode-AMD-Add-support-for-fam17h-microcode-l.patch
upstream/0033-apparmor-fix-regression-in-mount-mediation-when-feat.patch
upstream/0034-parisc-Fix-alignment-of-pa_tlb_lock-in-assembly-on-3.patch
upstream/0035-parisc-qemu-idle-sleep-support.patch
upstream/0036-mtd-nand-pxa3xx-Fix-READOOB-implementation.patch
upstream/0037-KVM-s390-fix-cmma-migration-for-multiple-memory-slot.patch
upstream/0038-KVM-s390-prevent-buffer-overrun-on-memory-hotplug-du.patch
##upstream/0039-Linux-4.14.13-rc1.patch

- EOF -

Reply via email to