[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linuxbios
Subject:    [coreboot] Re: Makefile classes-y vs subdirs-y
From:       Patrick Georgi via coreboot <coreboot () coreboot ! org>
Date:       2024-02-16 16:44:44
Message-ID: 785591bcce9c2f80206d55ace2fb40bc () coreboot ! org
[Download RAW message or body]

libpayload uses both.

For example, line 52 defines a class "libcbfs", line 64 adds the subdir "libcbfs".And
https://elixir.bootlin.com/coreboot/latest/source/payloads/libpayload/libcbfs/Makefile.inc \
adds its sources to the libcbfs class.

Roughly speaking: subdirs-y just makes the build system scan the Makefile in those \
subdirs. classes-y creates a new type of build artifact (e.g. \
bootblock/romstage/ramstage in coreboot, or the various libraries in libpayload), and \
then $classname-y collects the sources related to that artifact.


Hope this helps,
Patrick
_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-leave@coreboot.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic