diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-10-25 19:39:31 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-04 17:10:51 -0500 |
commit | fb4384490df4e753dcac0478bdb5e912994ef9d6 (patch) | |
tree | 46548095b9e4baaa3a7de1d0ce8d07168ad3c01a /Makefile | |
parent | ff102c54b08cbb988097660c44c21acb4afa5102 (diff) | |
download | u-boot-fb4384490df4e753dcac0478bdb5e912994ef9d6.tar.gz |
mtd: Makefile: deep cleanup
Move MTD-related lines out of the root Makefile. Put them in their
respective directories. Enclose some of these new lines to skip them
when building the SPL. MTD core files and some MTD device drivers are
compiled in a mtd.o object and included in the final object only if
MTD support is required (there are two different symbols for that, one
for U-Boot and one for the SPL).
Now that all defconfigs have been fixed, we can stop the logic where
enabling a command selects the core files to compile. This logic is
broken since selecting a symbol with a 'depends on' will not enforce
this secondary dependency.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -731,11 +731,6 @@ libs-y += drivers/ libs-y += drivers/dma/ libs-y += drivers/gpio/ libs-y += drivers/i2c/ -libs-y += drivers/mtd/ -libs-$(CONFIG_CMD_NAND) += drivers/mtd/nand/raw/ -libs-y += drivers/mtd/onenand/ -libs-$(CONFIG_CMD_UBI) += drivers/mtd/ubi/ -libs-y += drivers/mtd/spi/ libs-y += drivers/net/ libs-y += drivers/net/phy/ libs-y += drivers/power/ \ |