X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=Makefile;h=efa07d5804e798f7dbc461a6e59230cd07d174fb;hp=394159a9f9b6ebbfe62cf91ace3a8389771fc3ec;hb=cef20fab184476968c2346e7558c9d9c5ee7ed10;hpb=2ecbc9b23df48ce352089877a5b66d9671e7ad2e diff --git a/Makefile b/Makefile index 394159a..efa07d5 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,8 @@ # THE SOFTWARE. # +SHELL=/bin/bash + # Note: You can override all variables by storing them # in an external file called "make.conf". -include conf/make.conf @@ -29,9 +31,9 @@ # This only sets the default value. All platforms now use a shared build # directory. Run "MACHINE=vuultimo bitbake vuplus-image" to build an image # for the vuultimo, if it is not the default. -MACHINE ?= vusolose +MACHINE ?= vuuno4k -MULTI_TEMPORARILY ?= NO +MULTI_TEMPORARILY ?= YES # Adjust according to the number CPU cores to use for parallel build. # Default: Number of processors in /proc/cpuinfo, if present, or 1. @@ -43,7 +45,7 @@ XSUM ?= md5sum BUILD_DIR = $(CURDIR)/build TOPDIR = $(BUILD_DIR)/$(MACHINE) -DL_DIR = $(CURDIR)/resource/sources +DL_DIR = $(CURDIR)/sources ifeq ($(MULTI_TEMPORARILY), YES) SSTATE_DIR = $(TOPDIR)/sstate-cache @@ -56,8 +58,7 @@ DEPDIR = $(BUILD_DIR)/.deps endif BBLAYERS ?= \ - $(CURDIR)/meta-bsp/$(MACHINE) \ - $(CURDIR)/meta-bsp/common \ + $(CURDIR)/meta-bsp \ $(CURDIR)/meta-openvuplus \ $(CURDIR)/meta-openembedded/meta-oe \ $(CURDIR)/meta-openembedded/meta-networking \ @@ -90,6 +91,7 @@ $(BBLAYERS): [ -d $@ ] || $(MAKE) $(MFLAGS) update init: $(BBLAYERS) $(CONFFILES) + @if [ ! -e $(CURDIR)/sources ]; then mkdir -p $(CURDIR)/sources; fi help: @echo "Your options:" @@ -220,6 +222,9 @@ $(TOPDIR)/conf/local.conf: $(DEPDIR)/.local.conf.$(MACHINE).$(LOCAL_CONF_HASH) @echo 'USER_CLASSES = "buildstats"' >> $@ @echo 'include $(DISTRO_INCLUDE_CONF)' >> $@ @echo 'include $(MACHINE_INCLUDE_CONF)' >> $@ + @if [ "$(MULTI_TEMPORARILY)" == "YES" ] ; then \ + echo "DEPLOY_DIR_IMAGE = \"\$${DEPLOY_DIR}/images\"" >> $@; \ + fi @echo 'INHERIT += "rm_work"' >> $@ BBLAYERS_CONF_HASH := $(call hash, \