]> git.proxmox.com Git - mirror_ubuntu-kernels.git/log
mirror_ubuntu-kernels.git
18 months agoUBUNTU: Ubuntu-6.1.0-1.1
Andrea Righi [Mon, 12 Dec 2022 09:05:03 +0000 (10:05 +0100)]
UBUNTU: Ubuntu-6.1.0-1.1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 12 Dec 2022 09:01:13 +0000 (10:01 +0100)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1999373
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 12 Dec 2022 08:58:38 +0000 (09:58 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.1
Andrea Righi [Mon, 12 Dec 2022 08:58:01 +0000 (09:58 +0100)]
UBUNTU: Rebase to v6.1

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] update variants
Andrea Righi [Mon, 12 Dec 2022 08:45:23 +0000 (09:45 +0100)]
UBUNTU: [Packaging] update variants

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] rename package to linux
Andrea Righi [Mon, 12 Dec 2022 08:43:05 +0000 (09:43 +0100)]
UBUNTU: [Packaging] rename package to linux

Copy lunar:linux-unstable to lunar:linux.

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: do not hijack CONFIGS/* to update annotations
Andrea Righi [Fri, 9 Dec 2022 15:38:48 +0000 (16:38 +0100)]
UBUNTU: [Packaging] annotations: do not hijack CONFIGS/* to update annotations

Files in CONFIGS/* have been always considered as "output" for
genconfigs. The annotations code changed those to be used both as output
(by genconfigs) and input (by updateconfigs), potentially breaking old
behaviors or old scripts that rely on the fact that CONFIGS/* files are
output-only.

Move temporary configs generated during updateconfigs to a proper
temporary directory.

Also drop config-check.log, because there's not really much value to
provide this file, since the changed config values can be easily
reviewed in annotations simply by running a git diff.

This exactly restores the previous behavior.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] kernelconfig: drop listnewconfigs
Andrea Righi [Fri, 9 Dec 2022 15:14:55 +0000 (16:14 +0100)]
UBUNTU: [Packaging] kernelconfig: drop listnewconfigs

Now that everything is managed in annotations there is not much value to
provide a listnewconfigs command, the list of new config options can be
seen easily by looking at annotations after running updateconfigs and if
really needed new config options can easily generated by running
`make listnewconfig` directly.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] automatically apply changes to annotations and drop importconfigs
Andrea Righi [Fri, 9 Dec 2022 07:41:46 +0000 (08:41 +0100)]
UBUNTU: [Packaging] automatically apply changes to annotations and drop importconfigs

Having to run importconfigs to resync the changes from the configs into
annotations is slightly changing the previous workflow (since we're
implicitly adding an "importconfigs" step, rather than fixing/reviewing
the changes and modifying annotations manually).

We can make the whole process look a lot similar as before simply by
running the 'importconfigs' phase automatically after updateconfigs.

In this way we would still have the failed checks reported in output,
but we would automatically have all the changes applied to annotations
already, so they can be reviewed with a simple git diff, inspected and
adjusted if needed.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] clean up deprecated notes in annotations
Andrea Righi [Fri, 9 Dec 2022 07:48:26 +0000 (08:48 +0100)]
UBUNTU: [Config] clean up deprecated notes in annotations

Get rid of old notes in annotations that are related to config options
that do not exist anymore.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Merge install commands
Masahiro Yamada [Mon, 5 Dec 2022 08:56:19 +0000 (17:56 +0900)]
UBUNTU: [Packaging] Merge install commands

You can install multiple source files with a single 'install' command.

Use $(addprefix ...) to merge the common directory part.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Remove unused INSTALL_FW_PATH
Masahiro Yamada [Mon, 5 Dec 2022 08:56:18 +0000 (17:56 +0900)]
UBUNTU: [Packaging] Remove unused INSTALL_FW_PATH

Upstream commit 5620a0d1aacd ("firmware: delete in-kernel firmware")
removed the in-tree firmware support.

This is meaningless since Linux 4.14.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] simplify abinum and uploadnum definitions
Masahiro Yamada [Mon, 5 Dec 2022 08:56:17 +0000 (17:56 +0900)]
UBUNTU: [Packaging] simplify abinum and uploadnum definitions

I do not say that I fully understood this complex regex, but this
commit splits the debian revision at the first period - the first
half as abinum and the second as uploadnum.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] install headers to debian/linux-libc-dev directly
Masahiro Yamada [Mon, 5 Dec 2022 08:56:16 +0000 (17:56 +0900)]
UBUNTU: [Packaging] install headers to debian/linux-libc-dev directly

The header installation is somewhat complex; 'make headers_install'
installs headers to debian/tmp-headers, then cpio copies them to
debian/linux-libc-dev, pruning '.*' files.

My best guess for the reason of this indirection is to avoid garbage
files contained in the packages.

In fact, "make headers_install" used to create dot files '.install'
and '.check' in the install destination.

Since Linux 5.3 (or more specifically since commit 59b2bd05f5f4),
headers_install does not install any dot files.

Specify the final destination to INSTALL_HDR_PATH, and you can get
clean installation.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] use parralel builds in more places
Masahiro Yamada [Mon, 5 Dec 2022 08:56:15 +0000 (17:56 +0900)]
UBUNTU: [Packaging] use parralel builds in more places

Kbuild is designed to work correctly with parallel builds.
For Kconfig stage, header installation, or whatever. I do not
see any reason why these must run in a single thread.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] use olddefconfig in stamp-prepare-tree
Masahiro Yamada [Mon, 5 Dec 2022 08:56:14 +0000 (17:56 +0900)]
UBUNTU: [Packaging] use olddefconfig in stamp-prepare-tree

You do not need to invoke syncconfig here because Kbuild takes care of
it before staring the build. prepare and scripts are unneeded for the
same reason.

All the use of 'syncconfig' in debian/rules is suspicous because
syncconfig may stop to ask for user's preference when it finds a
new config option. There is nobody to answer the Kconfig's question
when the package is being built in auto-builders such as cbd, launchpad.

Presumably what you want here is olddefconfig, which is a non-interactive
command to set any config option to its default.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Remove meaningless code in install-arch-headers
Masahiro Yamada [Mon, 5 Dec 2022 08:56:13 +0000 (17:56 +0900)]
UBUNTU: [Packaging] Remove meaningless code in install-arch-headers

install-arch-headers pointlessly constructs the .config before
running 'make headers_install'.

The kernel promises the stable interface to userspace; this is
backward-compatible and of course, independent of the kernel
configuration.

Kbuild does not include include/config/auto.conf for 'make headers*'
targets in the first place. [1]

[1]: https://github.com/torvalds/linux/blob/v6.0/Makefile#L271

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] simplify custom_override
Masahiro Yamada [Mon, 5 Dec 2022 08:56:12 +0000 (17:56 +0900)]
UBUNTU: [Packaging] simplify custom_override

You do not need to invoke the shell for if/else choice.

You can do it by using the $(if ...) built-in function.

  $(if $($(1)_$(2)),$($(1)_$(2)),$($(1)))

GNU Make >= 3.81 supports $(or ...), so the code can be even simpler:

  $(or $($(1)_$(2)),$($(1)))

No functional change is intended.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] simplify revision/release
Masahiro Yamada [Mon, 5 Dec 2022 08:56:11 +0000 (17:56 +0900)]
UBUNTU: [Packaging] simplify revision/release

Use "dpkg-parsepackage -S version" to get the version, and use Make's
built-in functions to split it into the upsteam-version and the
debian revision. This is more readable and works more efficiently.

BTW, GNU Make >= 3.81 supports $(lastword x) as a shorthand of
$(word $(words x), x).

Drop "revisions" and "prev_revisions", which are unused anywhere
except "printenv".

I did not get the use of "?=" for revision and prev_revison, but
I am keeping them in case I am missing something here.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] use dpkg-parsechangelog to get package name and series
Masahiro Yamada [Mon, 5 Dec 2022 08:56:10 +0000 (17:56 +0900)]
UBUNTU: [Packaging] use dpkg-parsechangelog to get package name and series

dpkg-parsechangelog is more readable than the complex regex matching.

Also, use the simple variables (:=) instead of recursive variables (=)
since these are used over and over again. Invoking the shell every time
is not efficient.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] add -rR MAKEFLAGS to clear implicit rules
Masahiro Yamada [Mon, 5 Dec 2022 08:56:09 +0000 (17:56 +0900)]
UBUNTU: [Packaging] add -rR MAKEFLAGS to clear implicit rules

Cancel implicit rules, otherwise GNU Make will try to examine a lot of
internal rules to update makefiles.

Add -rR, as the Kbuild does. [1]

If you want to see what is happening behind the scene:

    $ dpkg-buildpackage --rules-file="debian/rules -d"

[Before]

  Updating makefiles....
   Considering target file 'debian/rules.d/4-checks.mk'.
    Looking for an implicit rule for 'debian/rules.d/4-checks.mk'.
    Trying pattern rule with stem '4-checks.mk'.
    Trying implicit prerequisite 'debian/rules.d/4-checks.mk.o'.
    Trying pattern rule with stem '4-checks.mk'.
    Trying implicit prerequisite 'debian/rules.d/4-checks.mk.c'.
    Trying pattern rule with stem '4-checks.mk'.
    Trying implicit prerequisite 'debian/rules.d/4-checks.mk.cc'.
    Trying pattern rule with stem '4-checks.mk'.
    Trying implicit prerequisite 'debian/rules.d/4-checks.mk.C'.
    Trying pattern rule with stem '4-checks.mk'.
    Trying implicit prerequisite 'debian/rules.d/4-checks.mk.cpp'.
    Trying pattern rule with stem '4-checks.mk'.
    Trying implicit prerequisite 'debian/rules.d/4-checks.mk.p'.
    Trying pattern rule with stem '4-checks.mk'.
    Trying implicit prerequisite 'debian/rules.d/4-checks.mk.f'.

      [  snip a tons of examinations for implicit rules  ]

    No implicit rule found for 'debian/rules.d/4-checks.mk'.
    Finished prerequisites of target file 'debian/rules.d/4-checks.mk'.
   No need to remake target 'debian/rules.d/4-checks.mk'.

[After]

  Updating makefiles....
   Considering target file 'debian/rules.d/4-checks.mk'.
    Looking for an implicit rule for 'debian/rules.d/4-checks.mk'.
    No implicit rule found for 'debian/rules.d/4-checks.mk'.
    Finished prerequisites of target file 'debian/rules.d/4-checks.mk'.

[1]: https://github.com/torvalds/linux/blob/v6.0/Makefile#L41

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Make the compiler for fix-filenames explicit
Masahiro Yamada [Mon, 5 Dec 2022 08:56:08 +0000 (17:56 +0900)]
UBUNTU: [Packaging] Make the compiler for fix-filenames explicit

The rule for debian/scripts/fix-filenames:

        $(CC) -o $@ $^

is fragile because 'CC' is not set anywhere in our Makefiles.

We rely on GNU Make using 'CC' in its internal database. This assumption
would break if the -R option is given. In this case, the line above
would expand to:

        -o $@ $^

What is worse, GNU Make ignores errors if the recipe line starts with '-'.
(See the note below)

Then, GNU Make would proceed without building fix-filenames.

  $ debian/rules -R debian/scripts/fix-filenames
  o debian/scripts/fix-filenames debian/scripts/fix-filenames.c
  /bin/bash: line 1: o: command not found
  make: [debian/rules.d/2-binary-arch.mk:17: debian/scripts/fix-filenames] Error 127 (ignored)

Make the compiler explicit, and change the posion of -o to make it even
robust.

[Note]

Make manual "5.5 Errors in Recipes" [1] says:

  To ignore errors in a recipe line, write a ‘-’ at the beginning of the
  line’s text (after the initial tab). The ‘-’ is discarded before the
  line is passed to the shell for execution.

[1]: https://www.gnu.org/software/make/manual/make.html#Errors

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] mark phony targets
Masahiro Yamada [Mon, 5 Dec 2022 08:56:07 +0000 (17:56 +0900)]
UBUNTU: [Packaging] mark phony targets

I added the .PHONY before each of the target rules.

If we add multiple phony targets to .PHONY in a single line,
as in debian/rules.d/0-common-vars.mk, it is difficult to parse
which target is missing the .PHONY marker.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Move checker scripts to debian/scripts/checks
Juerg Haefliger [Thu, 8 Dec 2022 07:17:28 +0000 (08:17 +0100)]
UBUNTU: [Packaging] Move checker scripts to debian/scripts/checks

Tidy up the scripts directory and move all checker scripts to a new
subdirectory.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Clean up debian/scripts/module-check
Juerg Haefliger [Thu, 8 Dec 2022 07:17:27 +0000 (08:17 +0100)]
UBUNTU: [Packaging] Clean up debian/scripts/module-check

Various cleanups to match the new abi-check script:
 - Comment header
 - Skipmodule argument parsing
 - Script output

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Simplify debian/scripts/module-check
Juerg Haefliger [Thu, 8 Dec 2022 07:17:26 +0000 (08:17 +0100)]
UBUNTU: [Packaging] Simplify debian/scripts/module-check

Split the reading of the old modules and the checking of missing/new
modules into two separate blocks. This makes the code simpler and
easier to understand and also aligns it with similar code in the new
abi-check script.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Rewrite debian/scripts/abi-check in Python
Juerg Haefliger [Thu, 8 Dec 2022 07:17:25 +0000 (08:17 +0100)]
UBUNTU: [Packaging] Rewrite debian/scripts/abi-check in Python

Rewrite the ABI checker script in Python. While at it, drop the check
for symbol hash changes since this has been ignored/disabled for ages
now.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Remove obsolete etc/kernelconfig
Juerg Haefliger [Wed, 7 Dec 2022 06:08:08 +0000 (07:08 +0100)]
UBUNTU: [Packaging] Remove obsolete etc/kernelconfig

etc/kernelconfig is no longer needed with the new annotation scheme so
drop it. Check for its existence in the kernelconfig script until all
derivatives have migrated to the new scheme at which point this can be
dropped as well.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: add missing CONFIG_ prefix in main()
Andrea Righi [Tue, 6 Dec 2022 07:57:49 +0000 (08:57 +0100)]
UBUNTU: [Packaging] annotations: add missing CONFIG_ prefix in main()

This is common for do_query(), do_note(), do_write() (and whatever
command might be added in the future).

Move it to main().

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: introduce --source
Andrea Righi [Mon, 5 Dec 2022 17:08:33 +0000 (18:08 +0100)]
UBUNTU: [Packaging] annotations: introduce --source

Add an option to jump to the definition of a specific config option in
the kernel source code (this requires a prior `make tags` to work).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: add an option to enable config autocompletion in...
Andrea Righi [Mon, 5 Dec 2022 16:50:24 +0000 (17:50 +0100)]
UBUNTU: [Packaging] annotations: add an option to enable config autocompletion in bash

Type `source <(annotations --autocomplete)` to enable auto-completion of
config options (without the CONFIG_ prefix) in bash when running
annotations script commands.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: allow to specify --write and --note at the same...
Andrea Righi [Mon, 5 Dec 2022 15:38:46 +0000 (16:38 +0100)]
UBUNTU: [Packaging] annotations: allow to specify --write and --note at the same time

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: prevent python broken pipe errors
Andrea Righi [Mon, 5 Dec 2022 15:08:43 +0000 (16:08 +0100)]
UBUNTU: [Packaging] annotations: prevent python broken pipe errors

Prevent broken pipe errors when showing output in pipe to other tools
(less for example).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: prevent generating .pyc files on import
Andrea Righi [Mon, 5 Dec 2022 11:51:25 +0000 (12:51 +0100)]
UBUNTU: [Packaging] annotations: prevent generating .pyc files on import

We may end up adding these files to our git repos by mistake, so simply
prevent generating them in advance.

There's a tiny performance penalty with this change, because python
needs to re-generate the bytecode on-the-fly every time the annotations
script is called, but this overhead is absolutely negligible compared
the rest of the kernel build time.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] kernelconfig: report arch and flavour in config-check log
Andrea Righi [Mon, 5 Dec 2022 09:38:25 +0000 (10:38 +0100)]
UBUNTU: [Packaging] kernelconfig: report arch and flavour in config-check log

Explicitly report in the config-check log each arch and flavour that is
processed.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: catch syntax errors in annotations
Andrea Righi [Mon, 5 Dec 2022 08:07:52 +0000 (09:07 +0100)]
UBUNTU: [Packaging] annotations: catch syntax errors in annotations

Trigger a syntax error when a policy or note rule is not properly
closed.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: properly support multiple levels of inclusion
Andrea Righi [Mon, 5 Dec 2022 07:54:59 +0000 (08:54 +0100)]
UBUNTU: [Packaging] annotations: properly support multiple levels of inclusion

Moreover, do some refactoring to optimize parsing.

Reported-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: clarify error message with --import
Andrea Righi [Mon, 5 Dec 2022 06:52:26 +0000 (07:52 +0100)]
UBUNTU: [Packaging] annotations: clarify error message with --import

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: accept config options with or without CONFIG_ prefix
Andrea Righi [Mon, 5 Dec 2022 06:41:53 +0000 (07:41 +0100)]
UBUNTU: [Packaging] annotations: accept config options with or without CONFIG_ prefix

Allow to specify config options with or without CONFIG_ prefix in the
commands --write and --note, to be consistent with --query that already
accepts both formats.

Reported-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: properly merge configs with includes
Andrea Righi [Mon, 5 Dec 2022 06:26:10 +0000 (07:26 +0100)]
UBUNTU: [Packaging] annotations: properly merge configs with includes

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: support flavour inheritance
Andrea Righi [Sun, 4 Dec 2022 13:13:10 +0000 (14:13 +0100)]
UBUNTU: [Packaging] annotations: support flavour inheritance

Allow to define flavour inheritance relationship in the annotations
file, such as:

 # FLAVOUR_DEP: {'amd64-lowlatency': 'amd64-generic', 'arm64-lowlatency': 'arm64-generic', 'arm64-lowlatency-64k': 'arm64-lowlatency-64k'}

In this case, for example, -lowlatency flavours inherits the config
values from -generic (both for amd64 and arm64) and -lowlatency-64
inherits the value from -generic-64k (only on arm64).

This allows to strongly reduce the size of annotations and helps to
read and review changes in annotations.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: allow to query using CONFIG_<option> or <option>
Andrea Righi [Thu, 1 Dec 2022 10:03:05 +0000 (11:03 +0100)]
UBUNTU: [Packaging] annotations: allow to query using CONFIG_<option> or <option>

Allow to use CONFIG_FOO or just FOO when querying config options in
annotations.

This can help to speed up config update/reviews simply by doing
copy/paste from the console during an updateconfigs when checking values
from master or other kernels doing queries with annotations.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: assume --query as default command
Andrea Righi [Thu, 1 Dec 2022 09:49:19 +0000 (10:49 +0100)]
UBUNTU: [Packaging] annotations: assume --query as default command

This allows to quickly query config options without having to specifcy
"--query --config CONFIG", but just "--config CONFIG", for example:

  $ debian/scripts/misc/annotations -c CONFIG_DEBUG_INFO_BTF

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: allow to set note to config options directly
Andrea Righi [Thu, 1 Dec 2022 09:47:27 +0000 (10:47 +0100)]
UBUNTU: [Packaging] annotations: allow to set note to config options directly

Allow to set a note to config options without changing their values.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] migrate-annotations: properly determine arches in derivatives
Andrea Righi [Tue, 29 Nov 2022 08:59:58 +0000 (09:59 +0100)]
UBUNTU: [Packaging] migrate-annotations: properly determine arches in derivatives

Source debian.<kernel>/etc/kernelconfig instead of parsing it to
properly determine the list of supported architectures (this can fix
potential issues with derivatives).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] migrateconfigs: ignore README.rst if it doesn't exist
Andrea Righi [Tue, 29 Nov 2022 08:47:59 +0000 (09:47 +0100)]
UBUNTU: [Packaging] migrateconfigs: ignore README.rst if it doesn't exist

Derivatives don't have a README.rst in their debian.<kernel>/config/
directory, so we shouldn't treat this as an error.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: set and delete configs from command line
Andrea Righi [Tue, 29 Nov 2022 08:01:13 +0000 (09:01 +0100)]
UBUNTU: [Packaging] annotations: set and delete configs from command line

Allow to set and delete config options from command line using the
'annotations' script (instead of manually editing the annotations file).

This also provides an interface to manage the annotations file from
other scripts.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.1.0-9.9
Andrea Righi [Mon, 28 Nov 2022 10:25:44 +0000 (11:25 +0100)]
UBUNTU: Ubuntu-unstable-6.1.0-9.9

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] udpate annotations after rebase to v6.1-rc7
Andrea Righi [Mon, 28 Nov 2022 10:24:47 +0000 (11:24 +0100)]
UBUNTU: [Config] udpate annotations after rebase to v6.1-rc7

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 28 Nov 2022 10:04:50 +0000 (11:04 +0100)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1998078
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.1-rc7
Andrea Righi [Mon, 28 Nov 2022 08:25:38 +0000 (09:25 +0100)]
UBUNTU: Rebase to v6.1-rc7

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 28 Nov 2022 08:24:28 +0000 (09:24 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] merge configs into annotations
Andrea Righi [Thu, 24 Nov 2022 07:08:13 +0000 (08:08 +0100)]
UBUNTU: [Config] merge configs into annotations

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] annotations: report failed config checks in alphabetic order
Andrea Righi [Mon, 28 Nov 2022 10:21:06 +0000 (11:21 +0100)]
UBUNTU: [Packaging] annotations: report failed config checks in alphabetic order

This helps to review config failures across different architectures.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] correctly propagate errors during updateconfigs
Andrea Righi [Mon, 28 Nov 2022 09:23:12 +0000 (10:23 +0100)]
UBUNTU: [Packaging] correctly propagate errors during updateconfigs

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] provide migrateconfigs debian/rules target
Andrea Righi [Fri, 18 Nov 2022 08:35:52 +0000 (09:35 +0100)]
UBUNTU: [Packaging] provide migrateconfigs debian/rules target

Provide debian/rules migrateconfigs to automatically migrate all configs
into annotations.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] re-introduce previous kernelconfig as old-kernelconfig
Andrea Righi [Fri, 18 Nov 2022 08:20:30 +0000 (09:20 +0100)]
UBUNTU: [Packaging] re-introduce previous kernelconfig as old-kernelconfig

Re-introduce the previous kernelconfig script to generate configs (this
is required for the automatic migration to annotations).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] introduce migrate-annotations
Andrea Righi [Fri, 18 Nov 2022 08:13:43 +0000 (09:13 +0100)]
UBUNTU: [Packaging] introduce migrate-annotations

Introduce a script to automatially migrate old configs into annotations.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] final-checks: support new annotations
Andrea Righi [Fri, 18 Nov 2022 11:03:22 +0000 (12:03 +0100)]
UBUNTU: [Packaging] final-checks: support new annotations

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] snap: support new annotations with snapcraft
Andrea Righi [Fri, 18 Nov 2022 10:46:39 +0000 (11:46 +0100)]
UBUNTU: [Packaging] snap: support new annotations with snapcraft

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] kernelconfig: introduce importconfigs
Andrea Righi [Wed, 16 Nov 2022 08:32:51 +0000 (09:32 +0100)]
UBUNTU: [Packaging] kernelconfig: introduce importconfigs

Introduce an option to automatically resync .config's into annotations.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] kernelconfig: provide listnewconfigs
Andrea Righi [Tue, 15 Nov 2022 12:17:00 +0000 (13:17 +0100)]
UBUNTU: [Packaging] kernelconfig: provide listnewconfigs

Provide a target to generate list of new config options in CONFIGS/new-*
(this is useful after a rebase to determine only the subset of new
config options that have been introduced).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] kernelconfig: always keep configs
Andrea Righi [Tue, 15 Nov 2022 10:22:12 +0000 (11:22 +0100)]
UBUNTU: [Packaging] kernelconfig: always keep configs

Do not delete the CONFIGS folder, now that we only have annotations it
could be useful to compare the real configs with the information stored
in the annotations file.

Moreover, also save a log of the config-check and store it in the
CONFIGS folder to help reviewing the failed config checks.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] simplify kernelconfig
Andrea Righi [Tue, 15 Nov 2022 07:54:54 +0000 (08:54 +0100)]
UBUNTU: [Packaging] simplify kernelconfig

Now that we rely on annotations we can safely drop old unused
features/options from kernelconfig.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] use annotations to generate initial configs check them
Andrea Righi [Mon, 14 Nov 2022 12:26:53 +0000 (13:26 +0100)]
UBUNTU: [Packaging] use annotations to generate initial configs check them

Fix debian build scripts to use annotations to generate initial configs.

Moreover, ignore the old config-check script, since the .config check
can be done using the annotations script itself (config-check will be
dropped later).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] drop deprecated script tristate.sh
Andrea Righi [Mon, 14 Nov 2022 10:35:43 +0000 (11:35 +0100)]
UBUNTU: [Packaging] drop deprecated script tristate.sh

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] kernelconfig: automatically generate configs from annotations
Andrea Righi [Sat, 12 Nov 2022 21:05:40 +0000 (22:05 +0100)]
UBUNTU: [Packaging] kernelconfig: automatically generate configs from annotations

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] add a README.rst to document the new annotations schema
Andrea Righi [Thu, 24 Nov 2022 06:47:52 +0000 (07:47 +0100)]
UBUNTU: [Packaging] add a README.rst to document the new annotations schema

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] introduce annotations script
Andrea Righi [Sat, 12 Nov 2022 22:02:50 +0000 (23:02 +0100)]
UBUNTU: [Packaging] introduce annotations script

Add a script to manage annotations and .config.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] config-check: support annotations format 4
Andrea Righi [Fri, 18 Nov 2022 14:08:42 +0000 (15:08 +0100)]
UBUNTU: [Packaging] config-check: support annotations format 4

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] config-check: do not strictly enforce CONFIG_CC_VERSION_TEXT
Andrea Righi [Mon, 14 Nov 2022 11:36:40 +0000 (12:36 +0100)]
UBUNTU: [Packaging] config-check: do not strictly enforce CONFIG_CC_VERSION_TEXT

Do not check for CONFIG_CC_VERSION_TEXT to allow building the kernel
with different versions of gcc (otherwise we need to always keep the
build chroots in sync to run a test build).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] config-check: ignore values that are not defined in annotations
Andrea Righi [Sat, 12 Nov 2022 14:34:26 +0000 (15:34 +0100)]
UBUNTU: [Packaging] config-check: ignore values that are not defined in annotations

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] Set ARM64_ERRATUM_2077057=y
Juerg Haefliger [Wed, 23 Nov 2022 08:21:15 +0000 (09:21 +0100)]
UBUNTU: [Config] Set ARM64_ERRATUM_2077057=y

This is the only arm64 erratum config that is disabled. There is no reason
for that so enable it.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.1.0-8.8
Paolo Pisati [Tue, 22 Nov 2022 10:56:26 +0000 (11:56 +0100)]
UBUNTU: Ubuntu-unstable-6.1.0-8.8

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: [Config] update configs following v6.1-rc6 rebase
Paolo Pisati [Tue, 22 Nov 2022 10:55:59 +0000 (11:55 +0100)]
UBUNTU: [Config] update configs following v6.1-rc6 rebase

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Tue, 22 Nov 2022 10:45:05 +0000 (11:45 +0100)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1997357
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Rebase to v6.1-rc6
Paolo Pisati [Tue, 22 Nov 2022 10:43:18 +0000 (11:43 +0100)]
UBUNTU: Rebase to v6.1-rc6

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Start new release
Paolo Pisati [Tue, 22 Nov 2022 10:42:27 +0000 (11:42 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agonet: wwan: t7xx: Add AP CLDMA
Haijun Liu [Thu, 10 Nov 2022 08:25:52 +0000 (16:25 +0800)]
net: wwan: t7xx: Add AP CLDMA

BugLink: https://bugs.launchpad.net/bugs/1990700
The t7xx device contains two Cross Layer DMA (CLDMA) interfaces to
communicate with AP and Modem processors respectively. So far only
MD-CLDMA was being used, this patch enables AP-CLDMA.

Rename small Application Processor (sAP) to AP.

Signed-off-by: Haijun Liu <haijun.liu@mediatek.com>
Co-developed-by: Madhusmita Sahu <madhusmita.sahu@intel.com>
Signed-off-by: Madhusmita Sahu <madhusmita.sahu@intel.com>
Signed-off-by: Moises Veleta <moises.veleta@linux.intel.com>
Signed-off-by: Devegowda Chandrashekar <chandrashekar.devegowda@intel.com>
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit d20ef656f9942950d67e29418512a6929682ad60)
Signed-off-by: You-Sheng Yang (vicamo) <vicamo.yang@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.1.0-7.7
Paolo Pisati [Wed, 16 Nov 2022 10:37:05 +0000 (11:37 +0100)]
UBUNTU: Ubuntu-unstable-6.1.0-7.7

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: ppc64el: remove missing module
Paolo Pisati [Wed, 16 Nov 2022 10:36:29 +0000 (11:36 +0100)]
UBUNTU: ppc64el: remove missing module

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Wed, 16 Nov 2022 10:34:48 +0000 (11:34 +0100)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1996731
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Start new release
Paolo Pisati [Wed, 16 Nov 2022 10:33:02 +0000 (11:33 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.1.0-6.6
Paolo Pisati [Tue, 15 Nov 2022 14:55:34 +0000 (15:55 +0100)]
UBUNTU: Ubuntu-unstable-6.1.0-6.6

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: [Config] update configs following v6.1-rc5 rebase
Paolo Pisati [Tue, 15 Nov 2022 14:55:10 +0000 (15:55 +0100)]
UBUNTU: [Config] update configs following v6.1-rc5 rebase

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Tue, 15 Nov 2022 14:44:21 +0000 (15:44 +0100)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1996616
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Start new release
Paolo Pisati [Tue, 15 Nov 2022 14:41:02 +0000 (15:41 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.1.0-5.5
Paolo Pisati [Mon, 7 Nov 2022 15:43:21 +0000 (16:43 +0100)]
UBUNTU: Ubuntu-unstable-6.1.0-5.5

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: [Config] toolchian update
Paolo Pisati [Mon, 7 Nov 2022 15:42:50 +0000 (16:42 +0100)]
UBUNTU: [Config] toolchian update

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Mon, 7 Nov 2022 15:41:31 +0000 (16:41 +0100)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1995875
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Rebase to v6.1-rc4
Paolo Pisati [Mon, 7 Nov 2022 15:39:32 +0000 (16:39 +0100)]
UBUNTU: Rebase to v6.1-rc4

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Start new release
Paolo Pisati [Mon, 7 Nov 2022 15:37:42 +0000 (16:37 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: packaging: switch to lunar series
Paolo Pisati [Mon, 7 Nov 2022 15:37:34 +0000 (16:37 +0100)]
UBUNTU: packaging: switch to lunar series

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: [Packaging] let linux-tools-common provides bpftool
Paolo Pisati [Fri, 4 Nov 2022 12:45:01 +0000 (13:45 +0100)]
UBUNTU: [Packaging] let linux-tools-common provides bpftool

BugLink: https://bugs.launchpad.net/bugs/1981089
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.1.0-4.4
Paolo Pisati [Thu, 3 Nov 2022 13:00:42 +0000 (14:00 +0100)]
UBUNTU: Ubuntu-unstable-6.1.0-4.4

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: [Config] update configs after rebase to 6.1-rc3
Paolo Pisati [Thu, 3 Nov 2022 12:59:46 +0000 (13:59 +0100)]
UBUNTU: [Config] update configs after rebase to 6.1-rc3

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Thu, 3 Nov 2022 12:50:30 +0000 (13:50 +0100)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1995500
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Rebase to v6.1-rc3
Paolo Pisati [Thu, 3 Nov 2022 12:41:46 +0000 (13:41 +0100)]
UBUNTU: Rebase to v6.1-rc3

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Start new release
Paolo Pisati [Thu, 3 Nov 2022 12:39:39 +0000 (13:39 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: [Config] Enable mtune z16
Dimitri John Ledkov [Tue, 1 Nov 2022 08:30:27 +0000 (09:30 +0100)]
UBUNTU: [Config] Enable mtune z16

Set mtune to z16

BugLink: https://bugs.launchpad.net/bugs/1982833
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Cory Todd <cory.todd@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>