LUG Castegnato - Linux Users Group Castegnato / compilazione enigma2

LUG Castegnato - Linux Users Group Castegnato

Linux User Group Castegnato - BS

Non hai eseguito l'accesso.

#1 25-10-2010 13:34:19

Ken Parker
Moderator
Registrato: 14-03-2008
Messaggi: 737
Sito web

compilazione enigma2

Installate la Mandriva 2010.1.

Durante l' installazione selezionate la modalitą esperto e selezionate tutti i pacchetti che riguardano lo sviluppo.

Dopo l' installazione installate i seguenti pacchetti:
help2man
diffstat
texi2html
glibc-static
openssl1.0.0-static-devel
codelite
libboost-dev


Create un utunte (tuxbox)
create una directory (dm8000 )


copiate questo:

#!/usr/bin/make -f
#
#  Makefile-opendreambox v0.4.7 (2010-10-11)
#

# Note: You can override all variables by storing them
# in an external file called "build.conf".
-include build.conf

# target platform: dm500hd, dm500plus, dm600pvr, dm7020, dm7025, dm800, dm8000
MACHINE ?= dm8000

# for a list of some other repositories have
# a look at http://git.opendreambox.org/
GIT_URL ?= git://git.opendreambox.org/git/openembedded

# in case you want to send pull requests or generate patches
#GIT_AUTHOR_NAME ?= Your Name
#GIT_AUTHOR_EMAIL ?= you@example.com

# set this to the number of CPU cores to use for parallel build
NUM_THREADS ?= 1

# Uncomment this if you want to use only one Git repository
# for all platforms.
#SINGLE_REPOSITORY ?= 1

# Uncomment this if you're upgrading an installation
# from Monotone. This changes the directory layout
# to the old version without shared directories.
#UPGRADE_FROM_MONOTONE ?= 1

# you should not need to change anything below
BB_URL ?= git://git.opendreambox.org/git/bitbake
BB_BRANCH ?= 1.8-dream

GIT = git
GIT_BRANCH = opendreambox-1.6

PWD := $(shell pwd)

ifeq ($(UPGRADE_FROM_MONOTONE),1)
OE_BASE = $(PWD)
else
OE_BASE = $(PWD)/$(MACHINE)
endif

ifeq ($(SINGLE_REPOSITORY),1)
GIT_DIR = $(PWD)/openembedded
else
GIT_DIR = $(OE_BASE)/openembedded
endif

ifeq ($(findstring $(MACHINE),dm500plus dm600pvr dm7020),$(MACHINE))
ARCH = powerpc
else
ARCH = mipsel
endif

all: initialize
    @echo
    @echo "Openembedded for the Dreambox environment has been initialized"
    @echo "properly. Now you can either:"
    @echo
    @echo "  - make the 'image'-target to build an image, or"
    @echo "  - go into $(MACHINE)/build/, source env.source and start on your own!"
    @echo

bb: bb/.git

bb/.git:
    @if [ -e bb/.svn ]; then \
        echo "BitBake needs to be updated. Please remove the \"bb\" directory manually!"; \
        exit 1; \
    fi
    $(GIT) clone -n $(BB_URL) bb
    cd bb && ( \
        if [ -n "$(GIT_AUTHOR_EMAIL)" ]; then git config user.email "$(GIT_AUTHOR_EMAIL)"; fi; \
        if [ -n "$(GIT_AUTHOR_NAME)" ]; then git config user.name "$(GIT_AUTHOR_NAME)"; fi; \
        $(GIT) branch --track $(BB_BRANCH) origin/$(BB_BRANCH) || true; \
        $(GIT) checkout -f $(BB_BRANCH) \
    )

bb-update: bb/.git
    cd bb && $(GIT) pull origin $(BB_BRANCH)

.PHONY: bb-update image initialize openembedded-update openembedded-update-all

image: bb-update initialize openembedded-update
    cd $(OE_BASE)/build; . ./env.source; bitbake -k dreambox-image

initialize: $(OE_BASE)/cache sources $(OE_BASE)/build $(OE_BASE)/build/conf \
    $(OE_BASE)/build/tmp $(GIT_DIR) $(OE_BASE)/build/conf/local.conf \
    $(OE_BASE)/build/env.source bb

openembedded-update: $(GIT_DIR)
    cd $(GIT_DIR) && $(GIT) pull origin $(GIT_BRANCH)

openembedded-update-all:
    @for dir in dm*/openembedded; do \
        echo "running $(GIT) pull origin $(GIT_BRANCH) in $$dir"; \
        cd $$dir && $(GIT) pull origin $(GIT_BRANCH) && cd -; \
    done


$(OE_BASE)/build $(OE_BASE)/build/conf $(OE_BASE)/build/tmp $(OE_BASE)/cache sources:
    mkdir -p $@

$(OE_BASE)/build/conf/local.conf:
    echo 'DL_DIR = "$(PWD)/sources"' > $@
    echo 'OE_BASE = "$(OE_BASE)"' >> $@
    echo 'BBFILES = "$(GIT_DIR)/recipes/*/*.bb"' >> $@
    echo 'PREFERRED_PROVIDERS += " virtual/$${TARGET_PREFIX}gcc-initial:gcc-cross-initial"' >> $@
    echo 'PREFERRED_PROVIDERS += " virtual/$${TARGET_PREFIX}gcc:gcc-cross"' >> $@
    echo 'PREFERRED_PROVIDERS += " virtual/$${TARGET_PREFIX}g++:gcc-cross"' >> $@
    echo 'MACHINE = "$(MACHINE)"' >> $@
    echo 'TARGET_OS = "linux"' >> $@
    echo 'DISTRO = "opendreambox"' >> $@
    echo 'CACHE = "$(OE_BASE)/cache/oe-cache.$${USER}"' >> $@
    echo 'BB_NUMBER_THREADS = "$(NUM_THREADS)"' >> $@
    echo 'CVS_TARBALL_STASH = "http://dreamboxupdate.com/sources-mirror/"' >> $@
    echo 'TOPDIR = "$${OE_BASE}/build"' >> $@
    echo 'IMAGE_KEEPROOTFS = "0"' >> $@

$(OE_BASE)/build/env.source:
    echo 'OE_BASE=$(OE_BASE)' > $@
    echo 'export BBPATH="$(GIT_DIR)/:$(PWD)/bb/:$${OE_BASE}/build/"' >> $@
    echo 'PATH=$(PWD)/bb/bin:$${OE_BASE}/build/tmp/cross/$(ARCH)/bin:$${PATH}' >> $@
    echo 'export PATH' >> $@
    echo 'export LD_LIBRARY_PATH=' >> $@
    echo 'export LANG=C' >> $@
    cat $@

$(GIT_DIR): $(GIT_DIR)/.git

$(GIT_DIR)/.git:
    @if [ -d $(GIT_DIR)/_MTN ]; then echo "Please remove your old monotone repository from $(GIT_DIR)!"; exit 1; fi
    $(GIT) clone -n $(GIT_URL) $(GIT_DIR)
    cd $(GIT_DIR) && ( \
        if [ -n "$(GIT_AUTHOR_EMAIL)" ]; then git config user.email "$(GIT_AUTHOR_EMAIL)"; fi; \
        if [ -n "$(GIT_AUTHOR_NAME)" ]; then git config user.name "$(GIT_AUTHOR_NAME)"; fi; \
        $(GIT) branch --track $(GIT_BRANCH) origin/$(GIT_BRANCH) || true; \
        $(GIT) checkout -f $(GIT_BRANCH) \
    )

copiate il file con il nome : Makefile-opendreambox


poi date il comando make -f Makefile-opendreambox image

ed aspettate il tempo che serve....


Coltiva Linux, perchč Windows si pianta da solo

Non in linea

 

#2 20-11-2010 14:48:48

Neri73
Nuovo Utente
Registrato: 09-11-2009
Messaggi: 4

Re: compilazione enigma2

KP mi a dato questo errore

write)
NOTE: Running task 2053 of 2218 (ID: 60, /home/luca/dm800se/dm800se/openembedded/recipes/opkg/opkg-native_svn.bb, do_package_stage)
NOTE: Running task 2054 of 2218 (ID: 49, /home/luca/dm800se/dm800se/openembedded/recipes/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb, do_package_write)
NOTE: Running task 2055 of 2218 (ID: 48, /home/luca/dm800se/dm800se/openembedded/recipes/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb, do_package_stage)
NOTE: Running task 2056 of 2218 (ID: 37, /home/luca/dm800se/dm800se/openembedded/recipes/quilt/quilt-native_0.48.bb, do_package_write)
NOTE: Running task 2057 of 2218 (ID: 36, /home/luca/dm800se/dm800se/openembedded/recipes/quilt/quilt-native_0.48.bb, do_package_stage)
NOTE: Running task 2058 of 2218 (ID: 25, /home/luca/dm800se/dm800se/openembedded/recipes/shasum/shasum-native.bb, do_package_write)
NOTE: Running task 2059 of 2218 (ID: 24, /home/luca/dm800se/dm800se/openembedded/recipes/shasum/shasum-native.bb, do_package_stage)
NOTE: Tasks Summary: Attempted 2059 tasks of which 0 didn't need to be rerun and 13 failed.
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/tuxbox/tuxbox-libtuxtxt.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/tuxbox/tuxbox-tuxtxt-32bpp.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/dreambox/dreambox-blindscan-utils.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/dreambox/dreambox-dvb-tools-v3.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/tuxbox/dvbsnoop.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/dreambox/dreambox-dccamd.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/tuxbox/tuxbox-common.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/fakelocale/fakelocale.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/dreambox/dreambox-tpmd.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/dreambox/dreambox-bootlogo.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/dreambox/dreambox-dvb-modules.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/v4l-dvb/v4l-dvb-modules_hg.bb' failed
ERROR: '/home/luca/dm800se/dm800se/openembedded/recipes/dreambox/dreambox-secondstage.bb' failed
make: *** [image] Error 1
[luca@localhost dm800se]$
[luca@localhost dm800se]$
[luca@localhost dm800se]$
[luca@localhost dm800se]$

Non in linea

 

#3 21-11-2010 17:55:35

Ken Parker
Moderator
Registrato: 14-03-2008
Messaggi: 737
Sito web

Re: compilazione enigma2

mi serve vedere i messaggi prima di quelli che hai postato


Coltiva Linux, perchč Windows si pianta da solo

Non in linea

 

#4 22-11-2010 20:21:28

Neri73
Nuovo Utente
Registrato: 09-11-2009
Messaggi: 4

Re: compilazione enigma2

sono riuscito a compilare grazie hai consigli di ken parker avevo dimenticato di installare opensll....

Ultima modifica di Neri73 (22-11-2010 22:28:10)

Non in linea

 

Footer forum

Powered by PunBB
© Copyright 2002–2008 PunBB