1*4882a593SmuzhiyunSUMMARY = "Library for interfacing with common SoC peripherals" 2*4882a593SmuzhiyunDESCRIPTION = "libsoc is a C library to interface with common peripherals (gpio, i2c, spi, pwm) \ 3*4882a593Smuzhiyun found in SoC (System on Chips) through generic Linux Kernel interfaces." 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunHOMEPAGE = "https://github.com/jackmitch/libsoc" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunLICENSE = "LGPL-2.1-only" 8*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENCE;md5=e0bfebea12a718922225ba987b2126a5" 9*4882a593Smuzhiyun 10*4882a593Smuzhiyuninherit autotools pkgconfig python3-dir 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSRCREV = "fd1ad6e7823fa76d8db0d3c5884faffa8ffddafb" 13*4882a593SmuzhiyunSRC_URI = "git://github.com/jackmitch/libsoc.git;branch=master;protocol=https" 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunS = "${WORKDIR}/git" 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunBOARD ??= "devboard" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunPACKAGECONFIG ?= "" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunPACKAGECONFIG[disabledebug] = "--disable-debug,," 22*4882a593SmuzhiyunPACKAGECONFIG[allboardconfigs] = "--with-board-configs,," 23*4882a593SmuzhiyunPACKAGECONFIG[enableboardconfig] = "--enable-board=${BOARD},," 24*4882a593SmuzhiyunPACKAGECONFIG[python] = "--enable-python=${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN},,${PYTHON_PN} ${PYTHON_PN}-native" 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunPACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', \ 27*4882a593Smuzhiyun '${PYTHON_PN}-libsoc-staticdev ${PYTHON_PN}-libsoc', '', d)}" 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunRDEPENDS:${PN} = "libgcc" 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunFILES:${PYTHON_PN}-libsoc-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*/*.a" 32*4882a593SmuzhiyunFILES:${PYTHON_PN}-libsoc += "${PYTHON_SITEPACKAGES_DIR}" 33