X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=Makefile;h=8a7374b32b03b5744fcb4fa4bcd299666869c0cf;hp=c2c02b5123ac16fec3fb876533e1a98b2eaf7a1d;hb=f6f5e236a8c97097ba5b1d8b91af00bb30136ef5;hpb=a6b296b9f0504de63a1a852ff472a8ec4197c4df diff --git a/Makefile b/Makefile index c2c02b5..8a7374b 100644 --- a/Makefile +++ b/Makefile @@ -24,14 +24,14 @@ -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 ?= vusolose -MULTI_TEMPORARILY ?= YES +MULTI_TEMPORARILY ?= NO # Adjust according to the number CPU cores to use for parallel build. # Default: Number of processors in /proc/cpuinfo, if present, or 1. @@ -56,14 +56,17 @@ 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 = \ - bitbake.env \ + $(TOPDIR)/bitbake.env \ $(TOPDIR)/conf/bblayers.conf \ $(TOPDIR)/conf/local.conf @@ -86,6 +89,7 @@ $(BBLAYERS): [ -d $@ ] || $(MAKE) $(MFLAGS) update init: $(BBLAYERS) $(CONFFILES) + @if [ ! -e $(CURDIR)/sources ]; then mkdir -p $(CURDIR)/sources; fi help: @echo "Your options:" @@ -95,21 +99,21 @@ 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" @echo @echo " * Set up the environment to build recipes manually:" + @echo " $$ cd $(BUILD_DIR)" @echo " $$ source bitbake.env" - @echo " $$ cd build/$(MACHINE)" @echo " $$ bitbake " @echo " [Replace with a recipe name, e.g. vuplus-image or enigma2]" @echo @@ -146,11 +150,11 @@ distclean: clean image: init @echo '[*] Building image for $(MACHINE)' - @. $(CURDIR)/bitbake.env && cd $(TOPDIR) && bitbake vuplus-image + @. $(TOPDIR)/bitbake.env && cd $(TOPDIR) && bitbake vuplus-image download: init @echo '[*] Downloading sources' - @. $(CURDIR)/bitbake.env && cd $(TOPDIR) && bitbake -cfetchall -k vuplus-image + @. $(TOPDIR)/bitbake.env && cd $(TOPDIR) && bitbake -cfetchall -k vuplus-image update: @echo '[*] Updating Git repositories...' @@ -177,8 +181,9 @@ BITBAKE_ENV_HASH := $(call hash, \ 'CURDIR = "$(CURDIR)"' \ ) -bitbake.env: $(DEPDIR)/.bitbake.env.$(BITBAKE_ENV_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 +220,7 @@ $(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)' >> $@ + @echo 'INHERIT += "rm_work"' >> $@ BBLAYERS_CONF_HASH := $(call hash, \ 'BBLAYERS_CONF_VERSION = "0"' \