anchor.diff:  	gzip -c ${S}/secondstage-${MACHINE}-${PV}.bin > ${STAGING_LIBDIR}/dreambox-secondstage/main.bin.gz
   }
   
  -# the dm{800,8000,500hd,800se,7020hd} secondstage is already compressed (and encrypted)
  -
  -do_stage_dm800() {
  +# secondstage >80 is already compressed
  +do_stage_mipsel() {
   	install -d ${STAGING_LIBDIR}/dreambox-secondstage
   	cp ${S}/secondstage-${MACHINE}-${PV}.bin ${STAGING_LIBDIR}/dreambox-secondstage/main.bin.gz
   }
   
  -do_install_dm800() {
  +do_install_mipsel() {
   	install -d ${D}/tmp
   	install ${WORKDIR}/secondstage-${MACHINE}-${PV}.nfi ${D}/tmp/secondstage.nfi
   	install -m 0755 ${WORKDIR}/${WRITENFI} ${D}/tmp/writenfi
  -}
  -
  -do_stage_dm8000() {
  -	do_stage_dm800
  -}
  -
  -do_install_dm8000() {
  -	do_install_dm800
  -}
  -
  -do_stage_dm500hd() {
  -	do_stage_dm800
  -}
  -
  -do_install_dm500hd() {
  -	do_install_dm800
  -}
  -
  -do_stage_dm800se() {
  -	do_stage_dm800
  -}
  -
  -do_install_dm800se() {
  -	do_install_dm800
  -}
  -
  -do_stage_dm7020hd() {
  -	do_stage_dm8000
  -}
  -
  -do_install_dm7020hd() {
  -	do_install_dm800
  -}
  -
  -do_install_dm7025() {
  -	do_install_dm800
   }
   
   FILES_${PN} = "/tmp"
  
positive.code: SECONDSTAGE_UPDATE_SRC = "http://sources.dreamboxupdate.com/download/7020/secondstage-${MACHINE}-${PV}.nfi \
  	http://sources.dreamboxupdate.com/download/7020/${WRITENFI}"
  
  SRC_URI_append_dm8000 = " ${SECONDSTAGE_UPDATE_SRC}"
  SRC_URI_append_dm800 = " ${SECONDSTAGE_UPDATE_SRC}"
  SRC_URI_append_dm500hd = " ${SECONDSTAGE_UPDATE_SRC}"
  SRC_URI_append_dm800se = " ${SECONDSTAGE_UPDATE_SRC}"
  SRC_URI_append_dm7020hd = " ${SECONDSTAGE_UPDATE_SRC}"
  SRC_URI_append_dm7025 = " ${SECONDSTAGE_UPDATE_SRC}"
  
  S = "${WORKDIR}"
  
  
negative.code: SECTION = "base"
  PRIORITY = "required"
  MAINTAINER = "Felix Domke <tmbinc@elitedvb.net>"
  PV_mipsel = "82"
  PV_dm7020 = "35"
  PV_dm600pvr = "66"
  PV_dm500plus = "66"
  PR = "r0"
  
  SRC_URI = "http://sources.dreamboxupdate.com/download/7020/secondstage-${MACHINE}-${PV}.bin"
  
  