Loading classes/elphel-dev.bbclass +28 −0 Original line number Original line Diff line number Diff line Loading @@ -55,12 +55,40 @@ EXTRA_OEMAKE = " \ INITSTRING='${INITSTRING}' \ INITSTRING='${INITSTRING}' \ " " do_clean_append() { import os.path VPATH = d.getVar("VPATH") dfile = os.path.join(VPATH,"src/.depend") if os.path.exists(dfile): os.remove(dfile) } do_compile_prepend() { do_compile_prepend() { echo "SRCREV is ${SRCREV}" echo "SRCREV is ${SRCREV}" if [ ! -f Makefile ]; then if [ ! -f Makefile ]; then echo "Nothing to compile (missing a Makefile)" echo "Nothing to compile (missing a Makefile)" exit 1 exit 1 fi fi # need to deal with .depend here DEPEND_FILE="${VPATH}/src/.depend" # Poky does not like non-zero exit codes, # look for matching lines - if empty string returned - remove .depend TEST_STR=`grep -r "${WORKDIR}" ${DEPEND_FILE} | cat` if [ -f $DEPEND_FILE ]; then if [ -z "${TEST_STR}" ]; then echo "This package version has been updated to ${PE}.${PV}.${PR}. Removing ${DEPEND_FILE} before compiling." rm ${DEPEND_FILE} fi fi } } do_install_append() { do_install_append() { Loading Loading
classes/elphel-dev.bbclass +28 −0 Original line number Original line Diff line number Diff line Loading @@ -55,12 +55,40 @@ EXTRA_OEMAKE = " \ INITSTRING='${INITSTRING}' \ INITSTRING='${INITSTRING}' \ " " do_clean_append() { import os.path VPATH = d.getVar("VPATH") dfile = os.path.join(VPATH,"src/.depend") if os.path.exists(dfile): os.remove(dfile) } do_compile_prepend() { do_compile_prepend() { echo "SRCREV is ${SRCREV}" echo "SRCREV is ${SRCREV}" if [ ! -f Makefile ]; then if [ ! -f Makefile ]; then echo "Nothing to compile (missing a Makefile)" echo "Nothing to compile (missing a Makefile)" exit 1 exit 1 fi fi # need to deal with .depend here DEPEND_FILE="${VPATH}/src/.depend" # Poky does not like non-zero exit codes, # look for matching lines - if empty string returned - remove .depend TEST_STR=`grep -r "${WORKDIR}" ${DEPEND_FILE} | cat` if [ -f $DEPEND_FILE ]; then if [ -z "${TEST_STR}" ]; then echo "This package version has been updated to ${PE}.${PV}.${PR}. Removing ${DEPEND_FILE} before compiling." rm ${DEPEND_FILE} fi fi } } do_install_append() { do_install_append() { Loading