Skip to content

Commit

Permalink
firmware: Enable stateless firmware loading
Browse files Browse the repository at this point in the history
Prefer the order of specific version before generic and /etc before
/lib to enable the user to give specific overrides for generic
firmware and distribution firmware.

Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
bryteise authored and xanmod committed Jan 8, 2024
1 parent 9abe481 commit 59a51f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/base/firmware_loader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ static int fw_decompress_xz(struct device *dev, struct fw_priv *fw_priv,
static char fw_path_para[256];
static const char * const fw_path[] = {
fw_path_para,
"/etc/firmware/" UTS_RELEASE,
"/etc/firmware",
"/lib/firmware/updates/" UTS_RELEASE,
"/lib/firmware/updates",
"/lib/firmware/" UTS_RELEASE,
Expand Down

0 comments on commit 59a51f8

Please sign in to comment.