fix DL_DIR.
authorChang.H.S <jhs@dev3>
Tue, 11 Dec 2012 09:44:10 +0000 (18:44 +0900)
committerChang.H.S <jhs@dev3>
Tue, 11 Dec 2012 10:06:50 +0000 (19:06 +0900)
fix bitbake.env location.

.gitignore
Makefile
sources [deleted symlink]

index 47a8ef8..13a193a 100644 (file)
@@ -4,7 +4,7 @@
 !/meta-bsp/
 !/meta-openvuplus/
 /openembedded-core/
-/sources/
+/resource/
 *.swp
 bblayers.conf
 /tmp/
index c2c02b5..9b537e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ XSUM ?= md5sum
 
 BUILD_DIR = $(CURDIR)/build
 TOPDIR = $(BUILD_DIR)/$(MACHINE)
-DL_DIR = $(CURDIR)/sources
+DL_DIR = $(CURDIR)/resource/sources
 
 ifeq ($(MULTI_TEMPORARILY), YES)
 SSTATE_DIR = $(TOPDIR)/sstate-cache
@@ -63,7 +63,7 @@ BBLAYERS ?= \
        $(CURDIR)/openembedded-core/meta
 
 CONFFILES = \
-       bitbake.env \
+       $(TOPDIR)/bitbake.env \
        $(TOPDIR)/conf/bblayers.conf \
        $(TOPDIR)/conf/local.conf
 
@@ -108,8 +108,8 @@ help:
        @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 <target>"
        @echo "    [Replace <target> with a recipe name, e.g. vuplus-image or enigma2]"
        @echo
@@ -146,11 +146,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,7 +177,7 @@ 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 $@'
        @echo '# Automatically generated file. Do not edit!' > $@
        @echo 'export PATH=$(CURDIR)/openembedded-core/scripts:$(CURDIR)/bitbake/bin:$${PATH}' >> $@
diff --git a/sources b/sources
deleted file mode 120000 (symlink)
index 4617085..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-/opt/hdd2/projects/openpli-oe-core/sources/
\ No newline at end of file