[lkml]   [2019]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] firmware_loader: move firmware/ to drivers/base/firmware_loader/builtin/
On Fri, Jan 11, 2019 at 6:59 PM Greg Kroah-Hartman
<> wrote:
> On Fri, Jan 11, 2019 at 06:52:00PM +0900, Masahiro Yamada wrote:
> > Currently, the 'firmware' directory only contains a single Makefile
> > to embed extra firmware into the kernel.
> >
> > Move it to the more relevant place.
> So this moves any "build in" firmware to need to be placed in
> drivers/base/firmare_loader/builtin/ instead of firmware/builtin/ ?


The build system searches extra firmware in the directory specified
by CONFIG_EXTRA_FIRMWARE_DIR. (default is /lib/firmware)

See drivers/base/firmware_loader/Kconfig:

string "Firmware blobs root directory"
depends on EXTRA_FIRMWARE != ""
default "/lib/firmware"
This option controls the directory in which the kernel build system
looks for the firmware files listed in the EXTRA_FIRMWARE option.

> If
> so, why? That seems like a lot of extra work for people now. And
> burrying it down in the drivers/base/ directory is not obvious at all.

The firmware search path is a different thing.

I am just moving the Makefile
because all the other stuff (C files, Kconfig)
has been moved into drivers/base/firmware_loader/.

And, this is the last piece work in order to
make drivers/base/firmware_loader self-contained.

Just a reminder of previous commits you applied:

commit 06bfd3c8ab1dbf0031022d056a90ace682f6a94c
Author: Luis R. Rodriguez <>
Date: Thu May 10 13:08:43 2018 -0700

firmware_loader: move kconfig FW_LOADER entries to its own file

This will make it easier to track and easier to understand
what components and features are part of the FW_LOADER. There
are some components related to firmware which have *nothing* to

Reviewed-by: Kees Cook <>
Signed-off-by: Luis R. Rodriguez <>
Signed-off-by: Greg Kroah-Hartman <>

commit 5d6d1ddd27301dc85b13b794262c8bcececf88f1
Author: Luis R. Rodriguez <>
Date: Sat Mar 10 06:14:50 2018 -0800

firmware: move firmware loader into its own directory

This will make it much easier to manage as we manage to
keep trimming componnents down into their own files to more
easily manage and maintain this codebase.

Suggested-by: Kees Cook <>
Signed-off-by: Luis R. Rodriguez <>
Signed-off-by: Greg Kroah-Hartman <>

Best Regards
Masahiro Yamada

 \ /
  Last update: 2019-01-11 11:22    [W:0.044 / U:9.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site