mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
[BUILD] conditionally compile common/cmd_*.c in common/Makefile
Modify common/Makefile to conditionally compile the cmd_*.c files based on the board config. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -30,16 +30,11 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
|
||||
#include <command.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/io.h>
|
||||
#include <pci.h>
|
||||
|
||||
#if defined(CONFIG_CMD_PCI)
|
||||
|
||||
extern int cmd_get_data_size(char* arg, int default_size);
|
||||
|
||||
unsigned char ShortPCIListing = 1;
|
||||
@@ -564,7 +559,3 @@ U_BOOT_CMD(
|
||||
"pci write[.b, .w, .l] b.d.f address value\n"
|
||||
" - write to CFG address\n"
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_PCI */
|
||||
|
Reference in New Issue
Block a user