Loading recipes-devtools/php/php_5.6.%.bbappend +12 −7 Original line number Original line Diff line number Diff line EXTRA_OECONF += "--enable-elphel" EXTRA_OECONF += "--enable-elphel" DEV_DIR ?= "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension/ext" DEV_DIR = "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension" do_unpack_append(){ do_unpack_append(){ print("Link extension to the main tree") print("Link everything to the main tree") DEV_DIR = d.getVar('DEV_DIR', True) DEV_DIR = d.getVar('DEV_DIR', True) S = d.getVar('S', True) S = d.getVar('S', True) if os.path.isdir(DEV_DIR): if os.path.isdir(DEV_DIR): print("DEV_DIR exists - creating links...") print("DEV_DIR exists - creating links...") devdir_abspath = os.path.abspath(DEV_DIR) devdir_abspath = os.path.abspath(DEV_DIR+"/src") for path, folders, files in os.walk(DEV_DIR): for path, folders, files in os.walk(DEV_DIR+"/src"): folders[:]=[fd for fd in folders if fd != ".git"] folders[:]=[fd for fd in folders if fd != ".git"] for folder in folders: for folder in folders: folder_abspath = os.path.abspath(os.path.join(path, folder)) folder_abspath = os.path.abspath(os.path.join(path, folder)) folder_relpath = folder_abspath.replace(devdir_abspath+"/", '') folder_relpath = folder_abspath.replace(devdir_abspath+"/", '') os.system("cd "+S+"/ext;mkdir -p "+folder_relpath) os.system("cd "+S+";mkdir -p "+folder_relpath) for filename in files: for filename in files: file_abspath = os.path.abspath(os.path.join(path, filename)) file_abspath = os.path.abspath(os.path.join(path, filename)) file_relpath = file_abspath.replace(devdir_abspath+"/", '') file_relpath = file_abspath.replace(devdir_abspath+"/", '') os.system("cd "+S+"/ext;ln -sf "+file_abspath+" "+file_relpath) os.system("cd "+S+";ln -sf "+file_abspath+" "+file_relpath) #make a link back: if not os.path.isdir(DEV_DIR+"/php"): os.system("ln -sf "+S+" "+DEV_DIR+"/php") } } No newline at end of file Loading
recipes-devtools/php/php_5.6.%.bbappend +12 −7 Original line number Original line Diff line number Diff line EXTRA_OECONF += "--enable-elphel" EXTRA_OECONF += "--enable-elphel" DEV_DIR ?= "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension/ext" DEV_DIR = "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension" do_unpack_append(){ do_unpack_append(){ print("Link extension to the main tree") print("Link everything to the main tree") DEV_DIR = d.getVar('DEV_DIR', True) DEV_DIR = d.getVar('DEV_DIR', True) S = d.getVar('S', True) S = d.getVar('S', True) if os.path.isdir(DEV_DIR): if os.path.isdir(DEV_DIR): print("DEV_DIR exists - creating links...") print("DEV_DIR exists - creating links...") devdir_abspath = os.path.abspath(DEV_DIR) devdir_abspath = os.path.abspath(DEV_DIR+"/src") for path, folders, files in os.walk(DEV_DIR): for path, folders, files in os.walk(DEV_DIR+"/src"): folders[:]=[fd for fd in folders if fd != ".git"] folders[:]=[fd for fd in folders if fd != ".git"] for folder in folders: for folder in folders: folder_abspath = os.path.abspath(os.path.join(path, folder)) folder_abspath = os.path.abspath(os.path.join(path, folder)) folder_relpath = folder_abspath.replace(devdir_abspath+"/", '') folder_relpath = folder_abspath.replace(devdir_abspath+"/", '') os.system("cd "+S+"/ext;mkdir -p "+folder_relpath) os.system("cd "+S+";mkdir -p "+folder_relpath) for filename in files: for filename in files: file_abspath = os.path.abspath(os.path.join(path, filename)) file_abspath = os.path.abspath(os.path.join(path, filename)) file_relpath = file_abspath.replace(devdir_abspath+"/", '') file_relpath = file_abspath.replace(devdir_abspath+"/", '') os.system("cd "+S+"/ext;ln -sf "+file_abspath+" "+file_relpath) os.system("cd "+S+";ln -sf "+file_abspath+" "+file_relpath) #make a link back: if not os.path.isdir(DEV_DIR+"/php"): os.system("ln -sf "+S+" "+DEV_DIR+"/php") } } No newline at end of file