mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
FSL: Clean up board/freescale/common/Makefile
Each file that can be built here now follows some CONFIG_ option so that they are appropriately built or not, as needed. And CONFIG_ defines were added to various board config files to make sure that happens. The other board/freescale/*/Makefiles no longer need to reach up and over into ../common to build their individually needed files any more. Boards that are CDS specific were renamed with cds_ prefix. Signed-off-by: Jon Loeliger <jdl@freescale.com>
This commit is contained in:
parent
a5af4b358a
commit
25eedb2c19
@ -29,10 +29,18 @@ endif
|
|||||||
|
|
||||||
LIB = $(obj)lib$(VENDOR).a
|
LIB = $(obj)lib$(VENDOR).a
|
||||||
|
|
||||||
COBJS-${CONFIG_PQ_MDS_PIB} += pq-mds-pib.o
|
COBJS-${CONFIG_FSL_CADMUS} += cadmus.o
|
||||||
COBJS-${CONFIG_ID_EEPROM} += sys_eeprom.o
|
COBJS-${CONFIG_FSL_CDS_EEPROM} += cds_eeprom.o
|
||||||
|
COBJS-${CONFIG_FSL_VIA} += cds_via.o
|
||||||
COBJS-${CONFIG_FSL_DIU_FB} += fsl_diu_fb.o fsl_logo_bmp.o
|
COBJS-${CONFIG_FSL_DIU_FB} += fsl_diu_fb.o fsl_logo_bmp.o
|
||||||
COBJS-${CONFIG_FSL_PIXIS} += pixis.o
|
COBJS-${CONFIG_FSL_PIXIS} += pixis.o
|
||||||
|
COBJS-${CONFIG_PQ_MDS_PIB} += pq-mds-pib.o
|
||||||
|
COBJS-${CONFIG_ID_EEPROM} += sys_eeprom.o
|
||||||
|
|
||||||
|
COBJS-${CONFIG_MPC8541CDS} += cds_pci_ft.o
|
||||||
|
COBJS-${CONFIG_MPC8548CDS} += cds_pci_ft.o
|
||||||
|
COBJS-${CONFIG_MPC8555CDS} += cds_pci_ft.o
|
||||||
|
|
||||||
|
|
||||||
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
|
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS-y))
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
||||||
|
@ -23,21 +23,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
ifneq ($(OBJTREE),$(SRCTREE))
|
|
||||||
$(shell mkdir -p $(obj)../common)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LIB = $(obj)lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
COBJS := $(BOARD).o law.o tlb.o \
|
COBJS-y += $(BOARD).o
|
||||||
../common/cadmus.o \
|
COBJS-y += law.o
|
||||||
../common/eeprom.o \
|
COBJS-y += tlb.o
|
||||||
../common/ft_board.o \
|
|
||||||
../common/via.o
|
|
||||||
|
|
||||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS))
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
||||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
SOBJS := $(addprefix $(obj),$(SOBJS-y))
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
||||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
|
@ -23,21 +23,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
ifneq ($(OBJTREE),$(SRCTREE))
|
|
||||||
$(shell mkdir -p $(obj)../common)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LIB = $(obj)lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
COBJS := $(BOARD).o law.o tlb.o \
|
COBJS-y += $(BOARD).o
|
||||||
../common/cadmus.o \
|
COBJS-y += law.o
|
||||||
../common/eeprom.o \
|
COBJS-y += tlb.o
|
||||||
../common/ft_board.o \
|
|
||||||
../common/via.o
|
|
||||||
|
|
||||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS))
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
||||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
SOBJS := $(addprefix $(obj),$(SOBJS-y))
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
||||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
|
@ -23,21 +23,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
ifneq ($(OBJTREE),$(SRCTREE))
|
|
||||||
$(shell mkdir -p $(obj)../common)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LIB = $(obj)lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
COBJS := $(BOARD).o law.o tlb.o \
|
COBJS-y += $(BOARD).o
|
||||||
../common/cadmus.o \
|
COBJS-y += law.o
|
||||||
../common/eeprom.o \
|
COBJS-y += tlb.o
|
||||||
../common/ft_board.o \
|
|
||||||
../common/via.o
|
|
||||||
|
|
||||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS))
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
||||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
SOBJS := $(addprefix $(obj),$(SOBJS-y))
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
||||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
|
@ -23,9 +23,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
ifneq ($(OBJTREE),$(SRCTREE))
|
|
||||||
$(shell mkdir -p $(obj)../common)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LIB = $(obj)lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
|
@ -21,10 +21,6 @@
|
|||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
ifneq ($(OBJTREE),$(SRCTREE))
|
|
||||||
$(shell mkdir -p $(obj)../common)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LIB = $(obj)lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
COBJS := $(BOARD).o law.o
|
COBJS := $(BOARD).o law.o
|
||||||
|
@ -49,6 +49,9 @@
|
|||||||
|
|
||||||
#define CONFIG_FSL_LAW 1 /* Use common FSL init code */
|
#define CONFIG_FSL_LAW 1 /* Use common FSL init code */
|
||||||
|
|
||||||
|
#define CONFIG_FSL_VIA
|
||||||
|
#define CONFIG_FSL_CDS_EEPROM
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When initializing flash, if we cannot find the manufacturer ID,
|
* When initializing flash, if we cannot find the manufacturer ID,
|
||||||
* assume this is the AMD flash associated with the CDS board.
|
* assume this is the AMD flash associated with the CDS board.
|
||||||
@ -274,6 +277,8 @@ extern unsigned long get_clock_freq(void);
|
|||||||
* 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7
|
* 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define CONFIG_FSL_CADMUS
|
||||||
|
|
||||||
#define CADMUS_BASE_ADDR 0xf8000000
|
#define CADMUS_BASE_ADDR 0xf8000000
|
||||||
#define CFG_BR3_PRELIM 0xf8000801
|
#define CFG_BR3_PRELIM 0xf8000801
|
||||||
#define CFG_OR3_PRELIM 0xfff00ff7
|
#define CFG_OR3_PRELIM 0xfff00ff7
|
||||||
|
@ -57,6 +57,9 @@
|
|||||||
|
|
||||||
#define CONFIG_FSL_LAW 1 /* Use common FSL init code */
|
#define CONFIG_FSL_LAW 1 /* Use common FSL init code */
|
||||||
|
|
||||||
|
#define CONFIG_FSL_VIA
|
||||||
|
#define CONFIG_FSL_CDS_EEPROM
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When initializing flash, if we cannot find the manufacturer ID,
|
* When initializing flash, if we cannot find the manufacturer ID,
|
||||||
* assume this is the AMD flash associated with the CDS board.
|
* assume this is the AMD flash associated with the CDS board.
|
||||||
@ -297,6 +300,8 @@ extern unsigned long get_clock_freq(void);
|
|||||||
* 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7
|
* 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define CONFIG_FSL_CADMUS
|
||||||
|
|
||||||
#define CADMUS_BASE_ADDR 0xf8000000
|
#define CADMUS_BASE_ADDR 0xf8000000
|
||||||
#define CFG_BR3_PRELIM 0xf8000801
|
#define CFG_BR3_PRELIM 0xf8000801
|
||||||
#define CFG_OR3_PRELIM 0xfff00ff7
|
#define CFG_OR3_PRELIM 0xfff00ff7
|
||||||
|
@ -49,6 +49,9 @@
|
|||||||
|
|
||||||
#define CONFIG_FSL_LAW 1 /* Use common FSL init code */
|
#define CONFIG_FSL_LAW 1 /* Use common FSL init code */
|
||||||
|
|
||||||
|
#define CONFIG_FSL_VIA
|
||||||
|
#define CONFIG_FSL_CDS_EEPROM
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When initializing flash, if we cannot find the manufacturer ID,
|
* When initializing flash, if we cannot find the manufacturer ID,
|
||||||
* assume this is the AMD flash associated with the CDS board.
|
* assume this is the AMD flash associated with the CDS board.
|
||||||
@ -274,6 +277,8 @@ extern unsigned long get_clock_freq(void);
|
|||||||
* 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7
|
* 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define CONFIG_FSL_CADMUS
|
||||||
|
|
||||||
#define CADMUS_BASE_ADDR 0xf8000000
|
#define CADMUS_BASE_ADDR 0xf8000000
|
||||||
#define CFG_BR3_PRELIM 0xf8000801
|
#define CFG_BR3_PRELIM 0xf8000801
|
||||||
#define CFG_OR3_PRELIM 0xfff00ff7
|
#define CFG_OR3_PRELIM 0xfff00ff7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user