Commit Graph

11 Commits

Author SHA1 Message Date
Mario Limonciello bcc397d610 Add new toplevel 'make dist' target.
This target produces a tarball following the most recent git tag.
The tarball contains firmware binaries that have been de-duped.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
2023-08-31 10:15:45 -05:00
Mario Limonciello 5e2367f8ea Wire up pre-commit to `make check`
This will let `make check` cover more things than just `WHENCE`.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
2023-08-29 20:51:24 -05:00
Emil Velikov ee91452dac
Makefile, copy-firmware: support xz/zstd compressed firmware
The kernel has supported compressed firmware for quite some time. So
let's add a couple of targets to produce that. In practical terms this
means it we'll use ~5x times less space on disk.

Reportedly the amd ucode, needs to be uncompressed _within_ the
initrd in order to work. Using compressed ucode in late load just works.
Ideally this will be addressed by the initrd generators, but considering
the files are tiny in size let's skip the compression.

v2
 - commit message, skip compression for files annotated as Raw

v3
 - rebase

[Drop extra verbose statement in zstd case, Josh Boyer
<jwboyer@kernel.org>]

Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
2023-06-25 12:18:57 -04:00
Konrad Weihmann eaee2dacc2
Makefile: replace mkdir by install
mkdir -p creates paths that are bound to user's settings and therefore
can lead to different file mode bits of the base paths accross different
machines.
Use install instead, as this tool is not prone to such behavior.

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
2022-05-31 12:57:56 -04:00
Brian Norris 7fa32bcc68
Makefile: improve `make check` usefulness
Silence the make echo'ing, so the output is cleaner.

Add an exit code to check_whence.py, so we can get a real failure for
bad WHENCE files.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
2020-03-02 08:06:26 -05:00
Takashi Iwai 07b925b450
Install only listed firmware files
The current make-install procedure leaves lots of garbage files that
aren't really firmware files in /lib/firmware.

Instead of copy-all-and-prune approach, copy only the listed files and
links in WHENCE by make-install for assuring only the proper firmware
files.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
2019-08-15 07:46:53 -04:00
Ben Hutchings 7d88736093 Add a metadata consistency check script
The script compares the files listed in WHENCE (or otherwise expected)
and the files known to git, and reports all differences as errors.

Add a 'check' rule to the Makefile that runs this.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2016-09-26 01:28:45 +01:00
Kyle McMartin a46023d61d Makefile: usbdux is an empty dir
It only contains source/README, which we remove in the installed
copy anyway.

Signed-off-by: Kyle McMartin <kyle@kernel.org>
2015-07-22 13:33:27 -04:00
Kyle McMartin c94da94b67 Makefile: use find instead of shell globs
So Makefile works with /bin/sh that's not bash.

Reported-by: Fredrik Rinnestam <fredrik@crux.nu>
Signed-off-by: Kyle McMartin <kyle@kernel.org>
2015-07-22 13:33:14 -04:00
Kyle McMartin 07679208aa Makefile: use correct dir for usbdux
Unnoticed for years...

Signed-off-by: Kyle McMartin <kyle@kernel.org>
2015-07-22 13:33:04 -04:00
Colin Walters 4c79292308 build: Implement minimal GNOME Build API
One more step on the road to entirely eliminating the concept of
packages.  I adapted the installation rules from the Fedora
spec file.

They should clearly be less lame, but to do so we'd need more formal
rules about which files should be installed.  Maybe just limit it to
things ending in ".bin" or ".fw"?

See http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Colin Walters <walters@verbum.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-05-25 20:41:26 +01:00