X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=Makefile;h=efa07d5804e798f7dbc461a6e59230cd07d174fb;hp=9b537e1fe5506274fbf5a201fccd6721f05998c3;hb=68e924f8ff48fe2b071bf801213010ee60da9631;hpb=14493366a75d119979538aaa7a416973b5f0413d diff --git a/Makefile b/Makefile index 9b537e1..efa07d5 100644 --- a/Makefile +++ b/Makefile @@ -19,17 +19,19 @@ # 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 # Target platform: -# vusolo, bm750, vuuno, vuultimo, vuduo2 +# vusolo, bm750, vuuno, vuultimo, vusolo2 # # 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 ?= vuultimo +MACHINE ?= vuuno4k MULTI_TEMPORARILY ?= YES @@ -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,10 +58,13 @@ 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 \ + $(CURDIR)/meta-openembedded/meta-multimedia \ + $(CURDIR)/meta-openembedded/meta-filesystems \ + $(CURDIR)/meta-openembedded/meta-python \ $(CURDIR)/openembedded-core/meta CONFFILES = \ @@ -86,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:" @@ -95,14 +101,14 @@ help: @echo @echo " * Select a new target machine:" @echo " $$ echo MACHINE=vuultimo >> conf/make.conf" - @echo " [Valid values: vusolo, bm750, vuuno, vuultimo, vusolo2, vuduo2]" + @echo " [Valid values: vusolo, bm750, vuuno, vuultimo, vusolo2]" @echo @echo " * Build a firmware image for the selected target machine:" @echo " $$ $(MAKE) image" @echo @echo " * Build a firmware image for a different target machine:" @echo " $$ $(MAKE) image MACHINE=vuultimo" - @echo " [Valid values: vusolo, bm750, vuuno, vuultimo, vusolo2, vuduo2]" + @echo " [Valid values: vusolo, bm750, vuuno, vuultimo, vusolo2]" @echo @echo " * Download all source files at once:" @echo " $$ $(MAKE) download" @@ -179,6 +185,7 @@ BITBAKE_ENV_HASH := $(call hash, \ $(TOPDIR)/bitbake.env: $(DEPDIR)/.bitbake.env.$(BITBAKE_ENV_HASH) @echo '[*] Generating $@' + @test -d $(@D) || mkdir -p $(@D) @echo '# Automatically generated file. Do not edit!' > $@ @echo 'export PATH=$(CURDIR)/openembedded-core/scripts:$(CURDIR)/bitbake/bin:$${PATH}' >> $@ @@ -215,6 +222,10 @@ $(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, \ 'BBLAYERS_CONF_VERSION = "0"' \