diff options
Diffstat (limited to 'sbe')
-rw-r--r-- | sbe/image/Makefile | 15 | ||||
-rw-r--r-- | sbe/image/img_defs.mk | 6 |
2 files changed, 18 insertions, 3 deletions
diff --git a/sbe/image/Makefile b/sbe/image/Makefile index 80efb5eb..9ba3dab7 100644 --- a/sbe/image/Makefile +++ b/sbe/image/Makefile @@ -75,9 +75,15 @@ LIB_DIRS += -L$(OBJDIR)/perv PERVLIB := $(OBJDIR)/perv/libperv.a LLIBS += -lperv +# Common Nest libraries +NEST_MAKE_DIR := $(NEST_SRCDIR) +LIB_DIRS += -L$(OBJDIR)/nest +NESTLIB := $(OBJDIR)/nest/libnest.a +LLIBS += -lnest + SBE_TOOLS := $(TOOLS_IMAGE_DIR)/sbe_xip_tool $(TOOLS_IMAGE_DIR)/sbe_default_tool -LINK_OBJS = $(OBJS) $(SBEFWLIB) $(PKLIB) $(FAPI2LIB) $(CACHELIB) $(CORELIB) $(HWPLIB) $(P2PLIB) $(PERVLIB) +LINK_OBJS = $(OBJS) $(SBEFWLIB) $(PKLIB) $(FAPI2LIB) $(CACHELIB) $(CORELIB) $(HWPLIB) $(P2PLIB) $(PERVLIB) $(NESTLIB) # Define the objects OBJS := $(addprefix $(OBJDIR)/, $(TOP_OBJECTS)) @@ -154,7 +160,7 @@ $(OBJDIR): $(TOOLS_ATTR_DIR)/ppeCreateIfAttrService.pl $(PPE_FAPI2_DIR)/include $(IMPORT_XML_DIR)/p9_ppe_attributes.xml $(ATTRFILES) mkdir -p $(OBJDIR) -.PHONY: clean topfixedheaders $(PKLIB) $(P2PLIB) $(PPELIB) $(FAPI2LIB) $(CACHELIB) $(CORELIB) $(PERVLIB) $(HWPLIB) +.PHONY: clean topfixedheaders $(PKLIB) $(P2PLIB) $(PPELIB) $(FAPI2LIB) $(CACHELIB) $(CORELIB) $(PERVLIB) $(NESTLIB) $(HWPLIB) topfixedheaders: $(TOOLS_ATTR_DIR)/ppeParseProcSbeFixed.pl . $(IMPORT_XML_DIR)/p9_ppe_attributes.xml $(ATTRFILES) @@ -201,6 +207,11 @@ $(PERVLIB): @echo "Processing perv makefile" $(MAKE) -I $(IMAGE_SRCDIR) -C $(PERV_MAKE_DIR) -f Makefile +#Build the nest code +$(NESTLIB): + @echo "Processing nest makefile" + $(MAKE) -I $(IMAGE_SRCDIR) -C $(NEST_MAKE_DIR) -f Makefile + #Build the comming HWP lib procedures $(HWPLIB): @echo "Processing HWP lib makefile" diff --git a/sbe/image/img_defs.mk b/sbe/image/img_defs.mk index 3be16a72..00cdbe35 100644 --- a/sbe/image/img_defs.mk +++ b/sbe/image/img_defs.mk @@ -54,12 +54,16 @@ ifndef PERV_SRCDIR export PERV_SRCDIR = $(abspath ../../hwp/perv) endif +ifndef NEST_SRCDIR +export NEST_SRCDIR = $(abspath ../../hwp/nest) +endif + ifndef HWPLIB_SRCDIR export HWPLIB_SRCDIR = $(abspath ../../hwp/lib) endif ifndef IMG_INCLUDES -export IMG_INCLUDES = -I$(IMAGE_SRCDIR) -I$(CACHE_SRCDIR) -I$(CORE_SRCDIR) -I$(PERV_SRCDIR) +export IMG_INCLUDES = -I$(IMAGE_SRCDIR) -I$(CACHE_SRCDIR) -I$(CORE_SRCDIR) -I$(PERV_SRCDIR) -I$(NEST_SRCDIR) endif ifndef BASE_OBJDIR export BASE_OBJDIR = $(abspath ../obj) |