Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
32
sources/poky/scripts/lib/scriptpath.py
Normal file
32
sources/poky/scripts/lib/scriptpath.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# Path utility functions for OE python scripts
|
||||
#
|
||||
# Copyright (C) 2012-2014 Intel Corporation
|
||||
# Copyright (C) 2011 Mentor Graphics Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
|
||||
def add_oe_lib_path():
|
||||
basepath = os.path.abspath(os.path.dirname(__file__) + '/../..')
|
||||
newpath = basepath + '/meta/lib'
|
||||
sys.path.insert(0, newpath)
|
||||
|
||||
def add_bitbake_lib_path():
|
||||
basepath = os.path.abspath(os.path.dirname(__file__) + '/../..')
|
||||
bitbakepath = None
|
||||
if os.path.exists(basepath + '/bitbake/lib/bb'):
|
||||
bitbakepath = basepath + '/bitbake'
|
||||
else:
|
||||
# look for bitbake/bin dir in PATH
|
||||
for pth in os.environ['PATH'].split(':'):
|
||||
if os.path.exists(os.path.join(pth, '../lib/bb')):
|
||||
bitbakepath = os.path.abspath(os.path.join(pth, '..'))
|
||||
break
|
||||
|
||||
if bitbakepath:
|
||||
sys.path.insert(0, bitbakepath + '/lib')
|
||||
return bitbakepath
|
||||
Reference in New Issue
Block a user