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 Aug 2, 2022
1 parent fe71202 commit b38f3ed
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 @@ -470,6 +470,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 b38f3ed

Please sign in to comment.