Compare commits
44 Commits
Author | SHA1 | Date |
---|---|---|
Harald Welte | 87fd9e70db | |
Harald Welte | 3a1ab31b38 | |
Daniel Willmann | bae9234b56 | |
Harald Welte | a9cc2b9a79 | |
Max | d6ac211bce | |
Harald Welte | 97af6203cd | |
Harald Welte | 90a8c7ebaa | |
Harald Welte | 4f8f48035a | |
Harald Welte | 7875f48c3c | |
Harald Welte | 18f43e645c | |
Harald Welte | da1fb1b014 | |
Harald Welte | ce14de5afa | |
Harald Welte | 4afd36eef1 | |
Harald Welte | aecbbe2c0a | |
Harald Welte | e9114b15b7 | |
Harald Welte | d1387e9ac4 | |
Harald Welte | 77cc4ac812 | |
Harald Welte | a06af1c4f1 | |
Harald Welte | 59aa24ab9a | |
Harald Welte | 11ca0fd885 | |
Harald Welte | 3641a69585 | |
Harald Welte | ff217ad58c | |
Holger Hans Peter Freyther | b5c1bfd9ba | |
Holger Hans Peter Freyther | 3490e54f4a | |
Holger Hans Peter Freyther | 00aa1c7fea | |
Daniel Willmann | 315f10aa47 | |
Holger Hans Peter Freyther | abc017e891 | |
Holger Hans Peter Freyther | 8610f32401 | |
Holger Hans Peter Freyther | 1bc3be8eb6 | |
Holger Hans Peter Freyther | 60aceccd0d | |
Holger Hans Peter Freyther | bbc7c997ae | |
Holger Hans Peter Freyther | b18c50951f | |
Holger Hans Peter Freyther | 204fea2e7d | |
Holger Hans Peter Freyther | 6751f3e212 | |
Holger Hans Peter Freyther | 789c9a650c | |
Holger Hans Peter Freyther | 2b8949c52e | |
Holger Hans Peter Freyther | 39afcd35ae | |
Holger Hans Peter Freyther | 3f352433bd | |
Holger Hans Peter Freyther | 0646719119 | |
Holger Hans Peter Freyther | 801c195338 | |
Holger Hans Peter Freyther | 49153b2904 | |
Holger Hans Peter Freyther | 9f0d341f23 | |
Holger Hans Peter Freyther | 0d7522675f | |
Holger Hans Peter Freyther | 2111c3cad3 |
|
@ -0,0 +1,155 @@
|
||||||
|
# gitver-pkg.bbclass
|
||||||
|
#
|
||||||
|
# Based on gitpkgv.bbclass from meta-openembedded
|
||||||
|
|
||||||
|
PKGGITH = "${@get_pkg_gith(d, '${PN}')}"
|
||||||
|
PKGGITN = "${@get_pkg_gitn(d, '${PN}')}"
|
||||||
|
PKGGITV = "${@get_pkg_gitv(d, '${PN}')}"
|
||||||
|
|
||||||
|
def gitpkgv_drop_tag_prefix(version):
|
||||||
|
import re
|
||||||
|
if re.match("v\d", version):
|
||||||
|
return version[1:]
|
||||||
|
else:
|
||||||
|
return version
|
||||||
|
|
||||||
|
def get_pkg_gitv(d, pn):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
src_uri = d.getVar('SRC_URI', 1).split()
|
||||||
|
fetcher = bb.fetch2.Fetch(src_uri, d)
|
||||||
|
ud = fetcher.ud
|
||||||
|
|
||||||
|
ver = "0.0-0"
|
||||||
|
|
||||||
|
for url in ud.values():
|
||||||
|
if url.type == 'git' or url.type == 'gitsm':
|
||||||
|
for name, rev in url.revisions.items():
|
||||||
|
if not os.path.exists(url.localpath):
|
||||||
|
return None
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(url.localpath),
|
||||||
|
'rev' : quote(rev) }
|
||||||
|
|
||||||
|
# Verify of the hash is present
|
||||||
|
try:
|
||||||
|
bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && "
|
||||||
|
"git describe %(rev)s --always 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && git fetch 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
# Try to get a version using git describe
|
||||||
|
try:
|
||||||
|
output = bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && "
|
||||||
|
"git describe %(rev)s --long 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
ver = gitpkgv_drop_tag_prefix(output)
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
try:
|
||||||
|
commits = bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && "
|
||||||
|
"git rev-list %(rev)s --count 2> /dev/null " % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
if commits == "":
|
||||||
|
commits = "0"
|
||||||
|
|
||||||
|
rev = bb.fetch2.get_srcrev(d).split('+')[1]
|
||||||
|
|
||||||
|
ver = "0.0-%s-g%s" % (commits, rev[:7])
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
return ver
|
||||||
|
|
||||||
|
def get_pkg_gitn(d, pn):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
src_uri = d.getVar('SRC_URI', 1).split()
|
||||||
|
fetcher = bb.fetch2.Fetch(src_uri, d)
|
||||||
|
ud = fetcher.ud
|
||||||
|
|
||||||
|
for url in ud.values():
|
||||||
|
if url.type == 'git' or url.type == 'gitsm':
|
||||||
|
for name, rev in url.revisions.items():
|
||||||
|
if not os.path.exists(url.localpath):
|
||||||
|
return None
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(url.localpath),
|
||||||
|
'rev' : quote(rev) }
|
||||||
|
|
||||||
|
# Verify of the hash is present
|
||||||
|
try:
|
||||||
|
bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && "
|
||||||
|
"git describe %(rev)s --always 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && git fetch 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
tag = bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && "
|
||||||
|
"git describe --abbrev=0 %(rev)s 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(url.localpath),
|
||||||
|
'rev' : quote(rev),
|
||||||
|
'tag' : quote(tag) }
|
||||||
|
|
||||||
|
commits = bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && "
|
||||||
|
"git rev-list %(rev)s ^%(tag)s --count 2> /dev/null " % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
return commits
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
commits = bb.fetch2.runfetchcmd(
|
||||||
|
"cd %(repodir)s && "
|
||||||
|
"git rev-list %(rev)s --count 2> /dev/null " % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
if commits == "":
|
||||||
|
commits = "0"
|
||||||
|
|
||||||
|
return commits
|
||||||
|
|
||||||
|
return '0'
|
||||||
|
|
||||||
|
|
||||||
|
def get_pkg_gith(d, pn):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
src_uri = d.getVar('SRC_URI', 1).split()
|
||||||
|
fetcher = bb.fetch2.Fetch(src_uri, d)
|
||||||
|
ud = fetcher.ud
|
||||||
|
|
||||||
|
for url in ud.values():
|
||||||
|
if url.type == 'git' or url.type == 'gitsm':
|
||||||
|
for name, rev in url.revisions.items():
|
||||||
|
if not os.path.exists(url.localpath):
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
return rev
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
|
@ -0,0 +1,139 @@
|
||||||
|
# gitver-repo.bbclass
|
||||||
|
#
|
||||||
|
# Based on gitpkgv.bbclass from meta-openembedded
|
||||||
|
|
||||||
|
REPODIR ?= "${THISDIR}"
|
||||||
|
|
||||||
|
REPOGITH = "${@get_repo_gith(d, '${REPODIR}')}"
|
||||||
|
REPOGITN = "${@get_repo_gitn(d, '${REPODIR}')}"
|
||||||
|
REPOGITV = "${@get_repo_gitv(d, '${REPODIR}')}"
|
||||||
|
REPOGITT = "${@get_repo_gitt(d, '${REPODIR}')}"
|
||||||
|
REPOGITFN = "${@get_repo_gitfn(d, '${REPODIR}', '${REPOFILE}')}"
|
||||||
|
|
||||||
|
def gitver_repo_drop_tag_prefix(version):
|
||||||
|
import re
|
||||||
|
if re.match("v\d", version):
|
||||||
|
return version[1:]
|
||||||
|
else:
|
||||||
|
return version
|
||||||
|
|
||||||
|
def get_repo_gitv(d, repodir):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(repodir) }
|
||||||
|
|
||||||
|
try:
|
||||||
|
output = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s describe --long 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
ver = gitver_repo_drop_tag_prefix(output)
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
return None
|
||||||
|
|
||||||
|
return ver
|
||||||
|
|
||||||
|
def get_repo_gitn(d, repodir):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(repodir) }
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
|
tag = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s describe --abbrev=0 2>/dev/null" % vars,
|
||||||
|
d, quiet=False).strip()
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(repodir),
|
||||||
|
'tag' : quote(tag) }
|
||||||
|
|
||||||
|
commits = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s rev-list %(tag)s.. --count 2> /dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
return commits
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
commits = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s rev-list --count HEAD 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
if commits == "":
|
||||||
|
commits = "0"
|
||||||
|
|
||||||
|
return commits
|
||||||
|
|
||||||
|
def get_repo_gitt(d, repodir):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(repodir) }
|
||||||
|
|
||||||
|
try:
|
||||||
|
tag = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s describe --abbrev=0 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
return tag
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def get_repo_gith(d, repodir):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(repodir) }
|
||||||
|
|
||||||
|
try:
|
||||||
|
hash = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s rev-parse HEAD 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
return hash
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def get_repo_gitfn(d, repodir, repofile):
|
||||||
|
import os
|
||||||
|
import bb
|
||||||
|
from pipes import quote
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(repodir),
|
||||||
|
'repofile' : quote(repofile) }
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
|
tag = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s describe --abbrev=0 2>/dev/null" % vars,
|
||||||
|
d, quiet=False).strip()
|
||||||
|
|
||||||
|
vars = { 'repodir' : quote(repodir),
|
||||||
|
'repofile' : quote(repofile),
|
||||||
|
'tag' : quote(tag) }
|
||||||
|
|
||||||
|
commits = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s rev-list --count %(tag)s.. %(repofile)s 2> /dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
return commits
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
commits = bb.fetch2.runfetchcmd(
|
||||||
|
"git -C %(repodir)s rev-list --count HEAD %(repofile)s 2>/dev/null" % vars,
|
||||||
|
d, quiet=True).strip()
|
||||||
|
|
||||||
|
if commits == "":
|
||||||
|
commits = "0"
|
||||||
|
|
||||||
|
return commits
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ def not_tarball(d):
|
||||||
workdir = d.getVar('WORKDIR',True)
|
workdir = d.getVar('WORKDIR',True)
|
||||||
s = d.getVar('S',True)
|
s = d.getVar('S',True)
|
||||||
if 'work-shared' in s or 'task-' in workdir or 'native' in workdir:
|
if 'work-shared' in s or 'task-' in workdir or 'native' in workdir:
|
||||||
pn = bb.data.getVar('PN', d , True)
|
pn = d.getVar('PN', True)
|
||||||
if pn == 'gcc-cross':
|
if pn == 'gcc-cross':
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
@ -362,8 +362,8 @@ def archive_scripts_logs(d):
|
||||||
|
|
||||||
def dumpdata(d):
|
def dumpdata(d):
|
||||||
'''dump environment to "${P}-${PR}.showdata.dump" including all kinds of variables and functions when running a task'''
|
'''dump environment to "${P}-${PR}.showdata.dump" including all kinds of variables and functions when running a task'''
|
||||||
workdir = bb.data.getVar('WORKDIR', d, 1)
|
workdir = d.getVar('WORKDIR', 1)
|
||||||
distro = bb.data.getVar('DISTRO', d, 1)
|
distro = d.getVar('DISTRO', 1)
|
||||||
s = d.getVar('S', True)
|
s = d.getVar('S', True)
|
||||||
pf = d.getVar('PF', True)
|
pf = d.getVar('PF', True)
|
||||||
target_sys = d.getVar('TARGET_SYS', True)
|
target_sys = d.getVar('TARGET_SYS', True)
|
||||||
|
@ -383,8 +383,8 @@ def dumpdata(d):
|
||||||
bb.data.emit_env(f, d, True)
|
bb.data.emit_env(f, d, True)
|
||||||
# emit the metadata which isnt valid shell
|
# emit the metadata which isnt valid shell
|
||||||
for e in d.keys():
|
for e in d.keys():
|
||||||
if bb.data.getVarFlag(e, 'python', d):
|
if d.getVarFlag(e, 'python'):
|
||||||
f.write("\npython %s () {\n%s}\n" % (e, bb.data.getVar(e, d, 1)))
|
f.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, 1)))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def create_diff_gz(d):
|
def create_diff_gz(d):
|
||||||
|
|
|
@ -35,3 +35,7 @@ PACKAGECONFIG_pn-systemd = "compat ldconfig binfmt sysusers randomseed myhostnam
|
||||||
|
|
||||||
# From fido on.. build curl with libssl to avoid gnutls
|
# From fido on.. build curl with libssl to avoid gnutls
|
||||||
PACKAGECONFIG_pn-curl="ipv6 ssl zlib"
|
PACKAGECONFIG_pn-curl="ipv6 ssl zlib"
|
||||||
|
|
||||||
|
# disable libsolv as it is broken Yocto Bug #11427
|
||||||
|
PACKAGECONFIG_pn-opkg = ""
|
||||||
|
PACKAGECONFIG_pn-opkg-native = ""
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
TARGET_ARCH = "arm"
|
TARGET_ARCH = "arm"
|
||||||
|
|
||||||
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
|
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
|
||||||
PREFERRED_VERSION_linux-sysmocom = "3.10.84+git%"
|
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
|
||||||
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
|
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
|
||||||
|
|
||||||
PREFERRED_VERSION_u-boot = "git"
|
PREFERRED_VERSION_u-boot = "git"
|
||||||
|
@ -41,3 +41,6 @@ MACHINE_EXTRA_RDEPENDS = "\
|
||||||
|
|
||||||
require conf/machine/include/tune-arm926ejs.inc
|
require conf/machine/include/tune-arm926ejs.inc
|
||||||
require conf/machine/include/dm6446.inc
|
require conf/machine/include/dm6446.inc
|
||||||
|
|
||||||
|
# we tune for armv5te but it ends up as armv5e on pyro and probably earlier. Help it.
|
||||||
|
ARMPKGSFX_THUMB="t"
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: Litecel15 EVM
|
||||||
|
#@DESCRIPTION: Machine configuration for the NRW Litecell15 EVM
|
||||||
|
|
||||||
|
# (omap-a15.inc)
|
||||||
|
|
||||||
|
SOC_FAMILY = "omap-a15"
|
||||||
|
require conf/machine/include/soc-family.inc
|
||||||
|
|
||||||
|
DEFAULTTUNE = "cortexa15thf-neon"
|
||||||
|
require conf/machine/include/tune-cortexa15.inc
|
||||||
|
|
||||||
|
KERNEL_IMAGETYPE = "zImage"
|
||||||
|
|
||||||
|
UBOOT_ARCH = "arm"
|
||||||
|
UBOOT_ENTRYPOINT = "0x80008000"
|
||||||
|
UBOOT_LOADADDRESS = "0x80008000"
|
||||||
|
|
||||||
|
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
||||||
|
|
||||||
|
PREFERRED_PROVIDER_virtual/kernel = "linux-litecell15"
|
||||||
|
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-litecell15"
|
||||||
|
PREFERRED_PROVIDER_u-boot = "u-boot-litecell15"
|
||||||
|
|
||||||
|
IMAGE_FSTYPES += "tar.gz"
|
||||||
|
SERIAL_CONSOLE = "115200 ttyS2"
|
||||||
|
UBOOT_MACHINE = "litecell15_config"
|
||||||
|
|
||||||
|
# Currently removing the sgx machine feature because there is no SGX package
|
||||||
|
# available for omap5
|
||||||
|
MACHINE_FEATURES = "kernel26 apm vfat ext2"
|
||||||
|
|
||||||
|
MACHINE_GPS_DEVICE = "/dev/ttyS0"
|
|
@ -0,0 +1,17 @@
|
||||||
|
# sysmoBTS 2100 machine type, based on LC15
|
||||||
|
require conf/machine/litecell15.conf
|
||||||
|
|
||||||
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
|
||||||
|
${@['watchdog', ''][d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd']} \
|
||||||
|
kernel-module-rpmsg-proto \
|
||||||
|
kernel-module-rpmsg-rpc \
|
||||||
|
kernel-module-nrw-clkerr \
|
||||||
|
kernel-module-nrw-vswr \
|
||||||
|
kernel-module-omap-remoteproc \
|
||||||
|
kernel-module-fpgadl \
|
||||||
|
"
|
||||||
|
|
||||||
|
MACHINE_EXTRA_RDEPENDS = "\
|
||||||
|
task-sysmocom-bts \
|
||||||
|
${@['watchdog', ''][d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd']} \
|
||||||
|
"
|
|
@ -0,0 +1,6 @@
|
||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: common_pc
|
||||||
|
#@DESCRIPTION: Machine configuration for sysmocom alix2d based hardware
|
||||||
|
|
||||||
|
require sysmocom-bsc.conf
|
||||||
|
MACHINEOVERRIDES = "${MACHINE}:sysmocom-bsc"
|
|
@ -0,0 +1,43 @@
|
||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: common_pc
|
||||||
|
#@DESCRIPTION: Machine configuration for sysmocom apu2 based hardware
|
||||||
|
|
||||||
|
require conf/machine/include/tune-core2.inc
|
||||||
|
require conf/machine/include/genericx86-common.inc
|
||||||
|
|
||||||
|
|
||||||
|
PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
|
||||||
|
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
|
||||||
|
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
|
||||||
|
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
|
||||||
|
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
|
||||||
|
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
|
||||||
|
|
||||||
|
MACHINE_FEATURES += "kernel26 x86 usbhost pci acpi"
|
||||||
|
|
||||||
|
KERNEL_IMAGETYPE = "bzImage"
|
||||||
|
|
||||||
|
IMAGE_FSTYPES = "ext4"
|
||||||
|
|
||||||
|
# After dora core2 got renamed to core2-32
|
||||||
|
# After dora core2 got renamed to core2-32
|
||||||
|
DEFAULTTUNE := "${@['core2', 'core2-32']['core2-32' in d.getVar('AVAILTUNES', True)]}"
|
||||||
|
|
||||||
|
SERIAL_CONSOLE = "115200 ttyS0"
|
||||||
|
MACHINE_CONSOLE = "console=ttyS0,115200n8"
|
||||||
|
|
||||||
|
# We bypass swrast but we need it to be present for X to load correctly
|
||||||
|
XSERVER ?= "xserver-xf86-dri-lite \
|
||||||
|
mesa-dri-driver-swrast \
|
||||||
|
xf86-input-vmmouse \
|
||||||
|
xf86-input-keyboard \
|
||||||
|
xf86-input-evdev \
|
||||||
|
xf86-video-vmware"
|
||||||
|
|
||||||
|
GLIBC_ADDONS = "nptl"
|
||||||
|
GLIBC_EXTRA_OECONF = "--with-tls"
|
||||||
|
|
||||||
|
#MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
|
||||||
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "linux-firmware-rtl-nic"
|
||||||
|
|
||||||
|
MACHINEOVERRIDES = "${MACHINE}:sysmocom-bsc"
|
|
@ -8,7 +8,8 @@ PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
|
||||||
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
|
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
|
||||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
|
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
|
||||||
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
|
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
|
||||||
PREFERRED_PROVIDER_virtual/kernel = "${@['linux-sysmocom', 'linux']['1.1' in d.getVar('DISTRO_VERSION', True)]}"
|
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
|
||||||
|
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
|
||||||
|
|
||||||
require conf/machine/include/tune-geode.inc
|
require conf/machine/include/tune-geode.inc
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
|
||||||
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
|
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
|
||||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
|
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
|
||||||
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
|
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
|
||||||
PREFERRED_PROVIDER_virtual/kernel = "${@['linux-sysmocom', 'linux']['1.1' in d.getVar('DISTRO_VERSION', True)]}"
|
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
|
||||||
|
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
|
||||||
|
|
||||||
MACHINE_FEATURES += "kernel26 x86 usbhost pci acpi"
|
MACHINE_FEATURES += "kernel26 x86 usbhost pci acpi"
|
||||||
|
|
||||||
|
|
|
@ -4,22 +4,22 @@ LIC_FILES_CHKSUM = " \
|
||||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||||
DEPENDS = "virtual/kernel"
|
DEPENDS = "virtual/kernel"
|
||||||
ALLOW_EMPTY_${PN} = "1"
|
ALLOW_EMPTY_${PN} = "1"
|
||||||
PR = "r23"
|
PR = "r24"
|
||||||
|
|
||||||
CALIB = ""
|
CALIB = ""
|
||||||
CALIB_sysmobts-v2 = "sysmobts-calib sysmobts-util"
|
CALIB_sysmobts-v2 = "sysmobts-calib sysmobts-util"
|
||||||
|
|
||||||
UTIL = ""
|
UTIL = ""
|
||||||
UTIL_sysmobts-v2 = "sbts2050-util gpsd gps-utils"
|
UTIL_sysmobts-v2 = "sbts2050-util gpsd gps-utils"
|
||||||
|
UTIL_sysmobts2100 = "gpsd gps-utils"
|
||||||
|
|
||||||
# TODO: re-add femtobts-calib after it went through the API migration
|
# TODO: re-add femtobts-calib after it went through the API migration
|
||||||
RDEPENDS_${PN} = "\
|
RDEPENDS_${PN} = "\
|
||||||
osmo-bts \
|
osmo-bts \
|
||||||
osmo-bts-remote \
|
|
||||||
osmo-pcu \
|
osmo-pcu \
|
||||||
lmsensors-scripts \
|
lmsensors-scripts \
|
||||||
sysmobts-config \
|
|
||||||
${CALIB} \
|
${CALIB} \
|
||||||
${UTIL} \
|
${UTIL} \
|
||||||
"
|
"
|
||||||
|
RDEPENDS_${PN}_append_sysmobts-v2 = " osmo-bts-remote sysmobts-config"
|
||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
require barebox.inc
|
require barebox.inc
|
||||||
|
|
||||||
SRCREV = "f2b03e21a869b8df30e428ac9408d7988d55279a"
|
SRCREV = "1d8bdd6f226df2ecbde3776b52fbc228158293fd"
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
git://git.sysmocom.de/barebox.git;branch=v2015.06 \
|
git://git.sysmocom.de/barebox.git;branch=v2015.06 \
|
||||||
file://defconfig \
|
file://defconfig \
|
||||||
|
@ -17,6 +17,9 @@ BAREBOX_BIN_SYMLINK ?= "barebox-${MACHINE}.bin"
|
||||||
# generated using echo -n 'bts-stop' | sha1sum
|
# generated using echo -n 'bts-stop' | sha1sum
|
||||||
BAREBOX_PASSWORD = "5a7ef8875df28cb95a0f833906f94df8573bcc5d"
|
BAREBOX_PASSWORD = "5a7ef8875df28cb95a0f833906f94df8573bcc5d"
|
||||||
|
|
||||||
|
# Provide a replacement for calling whoami
|
||||||
|
export KBUILD_BUILD_USER="poky"
|
||||||
|
|
||||||
do_configure_append () {
|
do_configure_append () {
|
||||||
mkdir -p ${WORKDIR}/env/nv
|
mkdir -p ${WORKDIR}/env/nv
|
||||||
echo 5 > ${WORKDIR}/env/nv/login.timeout
|
echo 5 > ${WORKDIR}/env/nv/login.timeout
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
||||||
|
|
||||||
PRINC="3"
|
PRINC="4"
|
||||||
|
|
|
@ -4,5 +4,3 @@ devpts /dev/pts devpts mode=0620,gid=5 0 0
|
||||||
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
|
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
|
||||||
tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
|
tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
|
||||||
tmpfs /var/volatile tmpfs defaults 0 0
|
tmpfs /var/volatile tmpfs defaults 0 0
|
||||||
|
|
||||||
/dev/sda1 /boot ext4 defaults,nofail 0 2
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/init-ifupdown-${PV}:${SYSMOCOM}/init-ifupdown-master:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/init-ifupdown-${PV}:${SYSMOCOM}/init-ifupdown-master:"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/init-ifupdown-${PV}:${SYSMOCOM}/init-ifupdown:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/init-ifupdown-${PV}:${SYSMOCOM}/init-ifupdown:"
|
||||||
PRINC = "13"
|
PRINC = "13"
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,78 @@
|
||||||
|
SECTION = "kernel"
|
||||||
|
DESCRIPTION = "Linux kernel for the LiteCell 1.5"
|
||||||
|
LICENSE = "GPLv2"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||||
|
|
||||||
|
require recipes-kernel/linux/linux-yocto.inc
|
||||||
|
|
||||||
|
KERNEL_IMAGETYPE = "zImage"
|
||||||
|
|
||||||
|
COMPATIBLE_MACHINE = "(litecell15|sysmobts2100)"
|
||||||
|
|
||||||
|
RDEPENDS_kernel-base += "kernel-devicetree"
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE_litecell15 = "litecell15.dtb"
|
||||||
|
KERNEL_DEVICETREE_sysmobts2100 = "litecell15.dtb"
|
||||||
|
|
||||||
|
RDEPENDS_kernel-devicetree += "update-alternatives-opkg"
|
||||||
|
|
||||||
|
LINUX_VERSION = "${PV}"
|
||||||
|
LINUX_VERSION_EXTENSION = "-lc15"
|
||||||
|
|
||||||
|
RDEPENDS_kernel-image += "update-alternatives-opkg"
|
||||||
|
|
||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
NRW_LC15_MIRROR ??= "gitlab.com/nrw_litecell15"
|
||||||
|
|
||||||
|
inherit gitver-pkg gitver-repo
|
||||||
|
|
||||||
|
REPODIR = "${THISDIR}"
|
||||||
|
REPOFILE = "linux-litecell15_4.4.32.bb"
|
||||||
|
PR := "r${REPOGITFN}"
|
||||||
|
|
||||||
|
REPODIR = "${THISDIR}/files"
|
||||||
|
REPOFILE = ""
|
||||||
|
PR := "${PR}.${REPOGITFN}"
|
||||||
|
|
||||||
|
PV = "4.4.32+git${SRCPV}"
|
||||||
|
PKGV = "${PKGGITV}"
|
||||||
|
|
||||||
|
DEV_BRANCH = "${@ 'nrw/litecell15-next' if d.getVar('NRW_BSP_DEVEL', False) == "next" else 'nrw/litecell15'}"
|
||||||
|
DEV_SRCREV = "${AUTOREV}"
|
||||||
|
DEV_SRCURI := "git://${NRW_LC15_MIRROR}/processor-sdk-linux.git;protocol=https;branch=${DEV_BRANCH}"
|
||||||
|
|
||||||
|
REL_BRANCH = "nrw/litecell15"
|
||||||
|
REL_SRCREV = "a54d64a4be25d87032a8600b97b271f255587844"
|
||||||
|
REL_SRCURI := "git://${NRW_LC15_MIRROR}/processor-sdk-linux.git;protocol=https;branch=${REL_BRANCH}"
|
||||||
|
|
||||||
|
BRANCH = "${@ '${DEV_BRANCH}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_BRANCH}'}"
|
||||||
|
SRCREV = "${@ '${DEV_SRCREV}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_SRCREV}'}"
|
||||||
|
SRC_URI = "${@ '${DEV_SRCURI}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_SRCURI}'}"
|
||||||
|
|
||||||
|
addtask showversion after do_compile before do_install
|
||||||
|
do_showversion() {
|
||||||
|
bbplain "${PN}: ${PKGGITV} => ${BRANCH}:${PKGGITH}"
|
||||||
|
}
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
sed -i -e 's/EXTRAVERSION =.*/EXTRAVERSION = .${PKGGITN}-lc15/g' ${S}/Makefile
|
||||||
|
}
|
||||||
|
|
||||||
|
SRC_URI += "file://defconfig"
|
||||||
|
|
||||||
|
# autoload defaults (alphabetically sorted)
|
||||||
|
module_autoload_fpgadl = "fpgadl"
|
||||||
|
module_autoload_nrw_clkerr = "nrw-clkerr"
|
||||||
|
module_autoload_nrw_vswr = "nrw-vswr"
|
||||||
|
module_autoload_omap_remoteproc = "omap_remoteproc"
|
||||||
|
module_autoload_rpmsg_proto = "rpmsg-proto"
|
||||||
|
module_autoload_rpmsg_rpc = "rpmsg-rpc"
|
||||||
|
|
||||||
|
KERNEL_MODULE_PROBECONF_append = "fpgadl nrw_clkerr nrw_vswr omap_remoteproc rpmsg_proto rpmsg_rpc"
|
||||||
|
KERNEL_MODULE_AUTOLOAD_append = "fpgadl nrw_clkerr nrw_vswr omap_remoteproc rpmsg_proto rpmsg_rpc"
|
||||||
|
|
||||||
|
RDEPENDS_kernel-module-omap-remoteproc += "lc15-firmware"
|
||||||
|
RDEPENDS_kernel-module-fpgadl += "lc15-firmware"
|
|
@ -0,0 +1,59 @@
|
||||||
|
inherit kernel
|
||||||
|
require linux-sysmocom.inc
|
||||||
|
|
||||||
|
DEPENDS += "bc-native"
|
||||||
|
|
||||||
|
# ATTENTION: Update linux-backports PR on version change. In Dora the
|
||||||
|
# reverse dependency tracking for the kernel doesn't appear to work. So
|
||||||
|
# please bump the PR on version changes!
|
||||||
|
# at versions changes do not forget to update conf/machine/include/sysmobts.inc too
|
||||||
|
LINUX_VERSION ?= "4.9.14"
|
||||||
|
LINUX_VERSION_EXTENSION ?= "-sysmocom-${LINUX_KERNEL_TYPE}"
|
||||||
|
|
||||||
|
# Overrides for the sysmocom bts v2
|
||||||
|
BTS_FIRMWARE_NAME_sysmobts-v2 = "sysmobts-v2"
|
||||||
|
|
||||||
|
SRCREV = "8d5d275254642b70b3ecf18a5b9b9fe9d5777230"
|
||||||
|
|
||||||
|
PR = "r1"
|
||||||
|
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||||
|
|
||||||
|
SRC_URI = "git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=lynxis/v4.9 \
|
||||||
|
file://defconfig"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
COMPATIBLE_MACHINE = "(sysmobts-v2|sysmocom-bsc)"
|
||||||
|
EXTRA_OEMAKE += "KALLSYMS_EXTRA_PASS=1"
|
||||||
|
|
||||||
|
require linux-tools.inc
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
install -m 0644 ${WORKDIR}/defconfig ${B}/.config
|
||||||
|
oe_runmake -C ${S} O=${B} oldconfig
|
||||||
|
}
|
||||||
|
|
||||||
|
# autoload defaults (alphabetically sorted)
|
||||||
|
module_autoload_davinci_mmc = "davinci_mmc"
|
||||||
|
module_autoload_dspdl_dm644x = "dspdl_dm644x"
|
||||||
|
module_autoload_fpgadl_par = "fpgadl_par"
|
||||||
|
module_autoload_leds-gpio = "leds-gpio"
|
||||||
|
module_autoload_mmc_block = "mmc_block"
|
||||||
|
module_autoload_msgqueue = "msgqueue"
|
||||||
|
module_autoload_rtfifo = "rtfifo"
|
||||||
|
|
||||||
|
KERNEL_MODULE_PROBECONF_append = "davinci_mmc dspdl_dm644x fpgadl_par leds-gpio mmc_block msgqueue rtfifo"
|
||||||
|
KERNEL_MODULE_AUTOLOAD_append = "davinci_mmc dspdl_dm644x fpgadl_par leds-gpio mmc_block msgqueue rtfifo"
|
||||||
|
|
||||||
|
# module configs (alphabetically sorted)
|
||||||
|
module_conf_dspdl_dm644x = "options dspdl_dm644x fw_name=${BTS_FIRMWARE_NAME}.out debug=0"
|
||||||
|
module_conf_fpgadl_par = "options fpgadl_par fw_name=${BTS_FIRMWARE_NAME}.bit"
|
||||||
|
module_conf_msgqueue = "options msgqueue fw_name=${BTS_FIRMWARE_NAME}.out"
|
||||||
|
module_conf_rtfifo = "options rtfifo fw_name=${BTS_FIRMWARE_NAME}.out"
|
||||||
|
|
||||||
|
RDEPENDS_kernel-module-dspdl-dm644x += "sysmobts-firmware"
|
||||||
|
RDEPENDS_kernel-module-fpgadl-par += "sysmobts-firmware"
|
||||||
|
RDEPENDS_kernel-module-msgqueue += "sysmobts-firmware"
|
||||||
|
RDEPENDS_kernel-module-rtfifo += "sysmobts-firmware"
|
||||||
|
|
||||||
|
DEFAULT_PREFERENCE = "-1"
|
|
@ -1,4 +1,4 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}:"
|
||||||
PRINC = "21"
|
PRINC = "21"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ LICENSE = "GPLv2+"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||||
DEPENDS = "pciutils"
|
DEPENDS = "pciutils"
|
||||||
|
|
||||||
SRCREV = "e62e515ce314599e48b268dac69d2f16a504264c"
|
SRCREV = "2052514dc99575140af40b25e41c438c98eb9b48"
|
||||||
SRC_URI = "git://git.sysmocom.de/rtl8168-eeprom;protocol=git;branch=master"
|
SRC_URI = "git://git.sysmocom.de/rtl8168-eeprom;protocol=git;branch=master"
|
||||||
PV = "v0.0.1+git${SRCPV}"
|
PV = "v0.0.1+git${SRCPV}"
|
||||||
PR = "r0"
|
PR = "r0"
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
|
||||||
|
index daa02a7..eff638a 100644
|
||||||
|
--- a/tools/env/fw_env.c
|
||||||
|
+++ b/tools/env/fw_env.c
|
||||||
|
@@ -17,6 +17,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
+#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ioctl.h>
|
|
@ -0,0 +1,91 @@
|
||||||
|
From 07373b2e477ae61f9f6a0e2eff41be3276d92923 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yocto <yocto@yocto.org>
|
||||||
|
Date: Thu, 2 Jun 2016 03:21:51 -0500
|
||||||
|
Subject: [PATCH] fix build error under gcc6
|
||||||
|
|
||||||
|
Fix the following error:
|
||||||
|
| ../include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
|
||||||
|
| #include gcc_header(__GNUC__)
|
||||||
|
|
||||||
|
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
---
|
||||||
|
include/linux/compiler-gcc6.h | 65 +++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
1 file changed, 65 insertions(+)
|
||||||
|
create mode 100644 include/linux/compiler-gcc6.h
|
||||||
|
|
||||||
|
diff --git a/include/linux/compiler-gcc6.h b/include/linux/compiler-gcc6.h
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..c8c5659
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/include/linux/compiler-gcc6.h
|
||||||
|
@@ -0,0 +1,65 @@
|
||||||
|
+#ifndef __LINUX_COMPILER_H
|
||||||
|
+#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead."
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#define __used __attribute__((__used__))
|
||||||
|
+#define __must_check __attribute__((warn_unused_result))
|
||||||
|
+#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
|
||||||
|
+
|
||||||
|
+/* Mark functions as cold. gcc will assume any path leading to a call
|
||||||
|
+ to them will be unlikely. This means a lot of manual unlikely()s
|
||||||
|
+ are unnecessary now for any paths leading to the usual suspects
|
||||||
|
+ like BUG(), printk(), panic() etc. [but let's keep them for now for
|
||||||
|
+ older compilers]
|
||||||
|
+
|
||||||
|
+ Early snapshots of gcc 4.3 don't support this and we can't detect this
|
||||||
|
+ in the preprocessor, but we can live with this because they're unreleased.
|
||||||
|
+ Maketime probing would be overkill here.
|
||||||
|
+
|
||||||
|
+ gcc also has a __attribute__((__hot__)) to move hot functions into
|
||||||
|
+ a special section, but I don't see any sense in this right now in
|
||||||
|
+ the kernel context */
|
||||||
|
+#define __cold __attribute__((__cold__))
|
||||||
|
+
|
||||||
|
+#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
|
||||||
|
+
|
||||||
|
+#ifndef __CHECKER__
|
||||||
|
+# define __compiletime_warning(message) __attribute__((warning(message)))
|
||||||
|
+# define __compiletime_error(message) __attribute__((error(message)))
|
||||||
|
+#endif /* __CHECKER__ */
|
||||||
|
+
|
||||||
|
+/*
|
||||||
|
+ * Mark a position in code as unreachable. This can be used to
|
||||||
|
+ * suppress control flow warnings after asm blocks that transfer
|
||||||
|
+ * control elsewhere.
|
||||||
|
+ *
|
||||||
|
+ * Early snapshots of gcc 4.5 don't support this and we can't detect
|
||||||
|
+ * this in the preprocessor, but we can live with this because they're
|
||||||
|
+ * unreleased. Really, we need to have autoconf for the kernel.
|
||||||
|
+ */
|
||||||
|
+#define unreachable() __builtin_unreachable()
|
||||||
|
+
|
||||||
|
+/* Mark a function definition as prohibited from being cloned. */
|
||||||
|
+#define __noclone __attribute__((__noclone__))
|
||||||
|
+
|
||||||
|
+/*
|
||||||
|
+ * Tell the optimizer that something else uses this function or variable.
|
||||||
|
+ */
|
||||||
|
+#define __visible __attribute__((externally_visible))
|
||||||
|
+
|
||||||
|
+/*
|
||||||
|
+ * GCC 'asm goto' miscompiles certain code sequences:
|
||||||
|
+ *
|
||||||
|
+ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670
|
||||||
|
+ *
|
||||||
|
+ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek.
|
||||||
|
+ *
|
||||||
|
+ * (asm goto is automatically volatile - the naming reflects this.)
|
||||||
|
+ */
|
||||||
|
+#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
|
||||||
|
+
|
||||||
|
+#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP
|
||||||
|
+#define __HAVE_BUILTIN_BSWAP32__
|
||||||
|
+#define __HAVE_BUILTIN_BSWAP64__
|
||||||
|
+#define __HAVE_BUILTIN_BSWAP16__
|
||||||
|
+#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
require u-boot-litecell15-${PV}.inc
|
||||||
|
|
||||||
|
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
|
||||||
|
SECTION = "bootloader"
|
||||||
|
DEPENDS = "mtd-utils u-boot"
|
||||||
|
PROVIDES_litecell15 = "u-boot-fw-utils"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
REPODIR = "${THISDIR}"
|
||||||
|
REPOFILE = "u-boot-fw-utils_2015.07.bb"
|
||||||
|
PR := "${INC_PR}.${REPOGITFN}"
|
||||||
|
|
||||||
|
INSANE_SKIP_${PN} = "already-stripped"
|
||||||
|
EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
|
||||||
|
EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
|
||||||
|
|
||||||
|
inherit uboot-config
|
||||||
|
|
||||||
|
do_compile () {
|
||||||
|
oe_runmake ${UBOOT_MACHINE}
|
||||||
|
oe_runmake env
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install () {
|
||||||
|
install -d ${D}${base_sbindir}
|
||||||
|
install -d ${D}${sysconfdir}
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
|
||||||
|
install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install_class-cross () {
|
||||||
|
install -d ${D}${bindir_cross}
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv
|
||||||
|
}
|
||||||
|
|
||||||
|
SYSROOT_PREPROCESS_FUNCS_class-cross = "uboot_fw_utils_cross"
|
||||||
|
uboot_fw_utils_cross() {
|
||||||
|
sysroot_stage_dir ${D}${bindir_cross} ${SYSROOT_DESTDIR}${bindir_cross}
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
BBCLASSEXTEND = "cross"
|
|
@ -0,0 +1,41 @@
|
||||||
|
LICENSE = "GPLv2+"
|
||||||
|
LIC_FILES_CHKSUM = "file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95"
|
||||||
|
|
||||||
|
NRW_LC15_MIRROR ??= "gitlab.com/nrw_litecell15"
|
||||||
|
|
||||||
|
inherit gitver-pkg gitver-repo
|
||||||
|
|
||||||
|
# Should match the one in u-boot.inc
|
||||||
|
INC_PR ??= "r1"
|
||||||
|
|
||||||
|
REPODIR = "${THISDIR}"
|
||||||
|
REPOFILE = "u-boot-litecell15-2015.07.inc"
|
||||||
|
INC_PR := "${INC_PR}.${REPOGITFN}"
|
||||||
|
|
||||||
|
PV = "2015.07+git${SRCPV}"
|
||||||
|
PKGV = "${PKGGITV}"
|
||||||
|
|
||||||
|
DEV_BRANCH = "${@ 'nrw/litecell15-next' if d.getVar('NRW_BSP_DEVEL', False) == "next" else 'nrw/litecell15'}"
|
||||||
|
DEV_SRCREV = "${AUTOREV}"
|
||||||
|
DEV_SRCURI := "git://${NRW_LC15_MIRROR}/u-boot.git;protocol=https;branch=${DEV_BRANCH}"
|
||||||
|
|
||||||
|
REL_BRANCH = "nrw/litecell15"
|
||||||
|
REL_SRCREV = "e2b1ddd84d72d8c57815265860ae58f6b170551c"
|
||||||
|
REL_SRCURI := "git://${NRW_LC15_MIRROR}/u-boot.git;protocol=https;branch=${REL_BRANCH}"
|
||||||
|
|
||||||
|
BRANCH = "${@ '${DEV_BRANCH}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_BRANCH}'}"
|
||||||
|
SRCREV = "${@ '${DEV_SRCREV}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_SRCREV}'}"
|
||||||
|
SRC_URI = "${@ '${DEV_SRCURI}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_SRCURI}'}"
|
||||||
|
|
||||||
|
SRC_URI += "file://0001-fw_env-missing-header.patch"
|
||||||
|
SRC_URI += "file://fix-build-error-under-gcc6.patch"
|
||||||
|
|
||||||
|
addtask showversion after do_compile before do_install
|
||||||
|
do_showversion() {
|
||||||
|
bbplain "${PN}: ${PKGGITV} => ${BRANCH}:${PKGGITH}"
|
||||||
|
}
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
sed -i -e 's/SUBLEVEL =.*/SUBLEVEL = ${PKGGITN}/g' ${S}/Makefile
|
||||||
|
sed -i -e 's/EXTRAVERSION =.*/EXTRAVERSION = -lc15/g' ${S}/Makefile
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
require u-boot.inc
|
||||||
|
require ${PN}-${PV}.inc
|
||||||
|
|
||||||
|
PROVIDES_litecell15 = " \
|
||||||
|
u-boot \
|
||||||
|
virtual/bootloader \
|
||||||
|
"
|
||||||
|
|
||||||
|
DESCRIPTION = "u-boot bootloader for LC15 / sysmoBTS 2100"
|
||||||
|
|
||||||
|
REPODIR = "${THISDIR}"
|
||||||
|
REPOFILE = "u-boot-litecell15_2015.07.bb"
|
||||||
|
PR := "${INC_PR}.${REPOGITFN}"
|
||||||
|
|
||||||
|
# set theses two variables to 1 to specify u-boot update requierement when the rootfs is updated
|
||||||
|
export MLO_UPGRADE = "1"
|
||||||
|
export UBOOT_UPGRADE = "1"
|
||||||
|
|
||||||
|
SPL_BINARY = "MLO"
|
||||||
|
SPL_UART_BINARY = "u-boot-spl.bin"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,76 @@
|
||||||
|
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc
|
||||||
|
|
||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:"
|
||||||
|
|
||||||
|
INC_PR = "r1"
|
||||||
|
|
||||||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
|
PROVIDES += "u-boot"
|
||||||
|
PKG_${PN} = "u-boot"
|
||||||
|
PKG_${PN}-dev = "u-boot-dev"
|
||||||
|
PKG_${PN}-dbg = "u-boot-dbg"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
UBOOT_SUFFIX = "img"
|
||||||
|
|
||||||
|
#RDEPENDS_${PN} = "repair"
|
||||||
|
|
||||||
|
# SPL (Second Program Loader) to be loaded over UART
|
||||||
|
SPL_UART_BINARY ?= ""
|
||||||
|
SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
|
||||||
|
SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
|
||||||
|
MLO_BIN ?= "MLO-${MACHINE}-${PV}-${PR}"
|
||||||
|
|
||||||
|
do_install_append () {
|
||||||
|
if [ "x${SPL_UART_BINARY}" != "x" ]
|
||||||
|
then
|
||||||
|
install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}
|
||||||
|
ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY}
|
||||||
|
fi
|
||||||
|
#FIXME: do we want/need this? replace iwth 'openssl enc -base64 -d'?
|
||||||
|
#md5sum ${D}/boot/${MLO_BIN} | cut -d ' ' -f 1 | xxd -r -p >> ${D}/boot/${MLO_BIN}
|
||||||
|
install -d ${D}${sysconfdir}
|
||||||
|
echo "MLO_UPGRADE=${MLO_UPGRADE}" >> ${D}${sysconfdir}/mlo.conf
|
||||||
|
echo "UBOOT_UPGRADE=${UBOOT_UPGRADE}" >> ${D}${sysconfdir}/uboot.conf
|
||||||
|
chmod 755 ${D}${sysconfdir}/mlo.conf
|
||||||
|
chmod 755 ${D}${sysconfdir}/uboot.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
do_deploy_append () {
|
||||||
|
cd ${DEPLOYDIR}
|
||||||
|
if [ "x${SPL_UART_BINARY}" != "x" ]
|
||||||
|
then
|
||||||
|
install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE}
|
||||||
|
rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK}
|
||||||
|
ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY}
|
||||||
|
ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK}
|
||||||
|
fi
|
||||||
|
#FIXME: do we want/need this? replace iwth 'openssl enc -base64 -d'?
|
||||||
|
#md5sum ${DEPLOYDIR}/${MLO_BIN} | cut -d ' ' -f 1 | xxd -r -p >> ${DEPLOYDIR}/${MLO_BIN}
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst_${PN}_append() {
|
||||||
|
if [ x"$D" = "x" ]; then
|
||||||
|
if [ -f /usr/bin/checkboot ]; then
|
||||||
|
echo "Verify boot file possible update..."
|
||||||
|
/usr/bin/checkboot -c -d
|
||||||
|
__CHECK_RET=$?
|
||||||
|
if test ${__CHECK_RET} -eq 100; then
|
||||||
|
sleep 30s
|
||||||
|
/usr/bin/checkboot -c -d
|
||||||
|
__CHECK_RET=$?
|
||||||
|
fi
|
||||||
|
if test ${__CHECK_RET} -ne 0; then
|
||||||
|
echo "Verify boot file possible update... error!"
|
||||||
|
else
|
||||||
|
echo "Verify boot file possible update... done!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
FILES_${PN} += "${sysconfdir}/mlo.conf \
|
||||||
|
${sysconfdir}/uboot.conf \
|
||||||
|
"
|
|
@ -1,4 +1,4 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}:"
|
||||||
PRINC = "9"
|
PRINC = "9"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/busybox-${SYSMOCOM_ORIG_PV}:${SYSMOCOM}/files:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/busybox-${SYSMOCOM_ORIG_PV}:${SYSMOCOM}/files:"
|
||||||
PRINC = "30"
|
PRINC = "30"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Make busybox work nicely with systemd
|
# Make busybox work nicely with systemd
|
||||||
SYSMOCOM_D := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM_D := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-systemd:${SYSMOCOM_D}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-systemd:${SYSMOCOM_D}/${PN}:"
|
||||||
PRINC := "${@int(PRINC) + 3}"
|
PRINC := "${@int(PRINC) + 3}"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
|
||||||
|
|
||||||
PRINC="4"
|
PRINC="4"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
|
||||||
|
|
||||||
PRINC = "2"
|
PRINC = "2"
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
https://bugs.gentoo.org/391299
|
||||||
|
|
||||||
|
split up linking flags into multiple arguments
|
||||||
|
|
||||||
|
Index: gpsd-3.10/SConstruct
|
||||||
|
===================================================================
|
||||||
|
--- gpsd-3.10.orig/SConstruct 2017-03-28 23:47:02.815665786 +0200
|
||||||
|
+++ gpsd-3.10/SConstruct 2017-03-28 23:47:40.463666285 +0200
|
||||||
|
@@ -250,7 +250,7 @@
|
||||||
|
env.Replace(**{j: os.getenv(i)})
|
||||||
|
for flag in ["LDFLAGS", "LINKFLAGS", "SHLINKFLAGS", "CPPFLAGS"]:
|
||||||
|
if os.environ.has_key(flag):
|
||||||
|
- env.MergeFlags({flag : [os.getenv(flag)]})
|
||||||
|
+ env.MergeFlags({flag : Split(os.getenv(flag))})
|
||||||
|
|
||||||
|
|
||||||
|
# Keep scan-build options in the environment
|
|
@ -0,0 +1,5 @@
|
||||||
|
# If you must specify a non-NMEA driver, uncomment and modify the next line
|
||||||
|
GPSD_SOCKET="/var/run/gpsd.sock"
|
||||||
|
GPSD_OPTIONS="-n"
|
||||||
|
GPS_DEVICES="/dev/ttyS0"
|
||||||
|
|
|
@ -11,6 +11,7 @@ PR = "r3.19"
|
||||||
SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
|
SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
|
||||||
file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \
|
file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \
|
||||||
file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \
|
file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \
|
||||||
|
file://gpsd-3.3-ldflags.patch \
|
||||||
file://no-rpath-please.patch \
|
file://no-rpath-please.patch \
|
||||||
file://gpsd-tsip-pps.patch \
|
file://gpsd-tsip-pps.patch \
|
||||||
file://leave-argv-untouched.patch \
|
file://leave-argv-untouched.patch \
|
||||||
|
@ -33,6 +34,8 @@ INITSCRIPT_PARAMS = "defaults 35"
|
||||||
|
|
||||||
export STAGING_INCDIR
|
export STAGING_INCDIR
|
||||||
export STAGING_LIBDIR
|
export STAGING_LIBDIR
|
||||||
|
export LINKFLAGS="${TARGET_LDFLAGS}"
|
||||||
|
export SHLINKFLAGS="${TARGET_LDFLAGS}"
|
||||||
|
|
||||||
EXTRA_OESCONS = " \
|
EXTRA_OESCONS = " \
|
||||||
sysroot=${STAGING_DIR_TARGET} \
|
sysroot=${STAGING_DIR_TARGET} \
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
From 7af9db748974cb3a2c6ef8f9e03d7db1f9f8ee16 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Paul Gortmaker <paul.gortmaker@windriver.com>
|
||||||
|
Date: Wed, 6 Aug 2014 14:54:12 -0400
|
||||||
|
Subject: [PATCH 1/2] defn2[c|man]: don't rely on dpkg-architecture to set arch
|
||||||
|
|
||||||
|
In yocto we'll always be cross compiling, and we'll always
|
||||||
|
be building on linux for linux (vs. *BSD, hurd, etc.)
|
||||||
|
|
||||||
|
Without this the arch is not detected, but it doesn't error
|
||||||
|
out, and hence you get useless binaries that don't know any
|
||||||
|
arch specific methods, and the end result will be strangeness
|
||||||
|
like the loopback device not being configured/enabled.
|
||||||
|
|
||||||
|
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
|
||||||
|
---
|
||||||
|
defn2c.pl | 6 +++---
|
||||||
|
defn2man.pl | 6 +++---
|
||||||
|
2 files changed, 6 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/defn2c.pl b/defn2c.pl
|
||||||
|
index c449de2f3d1c..38845e374c76 100755
|
||||||
|
--- a/defn2c.pl
|
||||||
|
+++ b/defn2c.pl
|
||||||
|
@@ -2,9 +2,9 @@
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
-my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
|
||||||
|
-
|
||||||
|
-$DEB_HOST_ARCH_OS =~ s/\n//;
|
||||||
|
+#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
|
||||||
|
+#$DEB_HOST_ARCH_OS =~ s/\n//;
|
||||||
|
+my $DEB_HOST_ARCH_OS ="linux";
|
||||||
|
|
||||||
|
# declarations
|
||||||
|
my $address_family = "";
|
||||||
|
diff --git a/defn2man.pl b/defn2man.pl
|
||||||
|
index 6ddcfdd4fe68..c9c4dd046597 100755
|
||||||
|
--- a/defn2man.pl
|
||||||
|
+++ b/defn2man.pl
|
||||||
|
@@ -2,9 +2,9 @@
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
-my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
|
||||||
|
-
|
||||||
|
-$DEB_HOST_ARCH_OS =~ s/\n//;
|
||||||
|
+#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
|
||||||
|
+#$DEB_HOST_ARCH_OS =~ s/\n//;
|
||||||
|
+my $DEB_HOST_ARCH_OS = "linux";
|
||||||
|
|
||||||
|
# declarations
|
||||||
|
my $line;
|
||||||
|
--
|
||||||
|
1.9.1
|
||||||
|
|
|
@ -7,7 +7,8 @@ LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=7adfbe801102d1e7e6bfdd3f03754efa"
|
LIC_FILES_CHKSUM = "file://debian/copyright;md5=7adfbe801102d1e7e6bfdd3f03754efa"
|
||||||
|
|
||||||
SRC_URI = "https://launchpadlibrarian.net/194033720/ifupdown_${PV}.tar.xz \
|
SRC_URI = "https://launchpadlibrarian.net/194033720/ifupdown_${PV}.tar.xz \
|
||||||
file://busybox-yocto-compat.patch "
|
file://busybox-yocto-compat.patch \
|
||||||
|
file://defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch "
|
||||||
|
|
||||||
SRC_URI[md5sum] = "bb204ae2fa4171d6f1de4097f4570a7d"
|
SRC_URI[md5sum] = "bb204ae2fa4171d6f1de4097f4570a7d"
|
||||||
SRC_URI[sha256sum] = "8a0647c59ee0606f5da9205c5b3c5b000fea98fe39348f6bb2cba5fecfc51090"
|
SRC_URI[sha256sum] = "8a0647c59ee0606f5da9205c5b3c5b000fea98fe39348f6bb2cba5fecfc51090"
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
diff --git iperf-2.0.5/man/Makefile.am iperf-2.0.5/man/Makefile.am
|
|
||||||
index ed97bc6..728873f 100644
|
|
||||||
--- iperf-2.0.5/man/Makefile.am
|
|
||||||
+++ iperf-2.0.5/man/Makefile.am
|
|
||||||
@@ -1,2 +1 @@
|
|
||||||
-man_MANS = iperf.1
|
|
||||||
-dist_man_MANS = $(man_MANS)
|
|
||||||
+dist_man_MANS = iperf.1
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
Index: iperf-2.0.9/include/util.h
|
||||||
|
===================================================================
|
||||||
|
--- iperf-2.0.9.orig/include/util.h
|
||||||
|
+++ iperf-2.0.9/include/util.h
|
||||||
|
@@ -57,6 +57,8 @@
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include <stdbool.h>
|
||||||
|
+
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
|
@ -4,12 +4,12 @@ SECTION = "console/network"
|
||||||
LICENSE = "BSD-2-Clause"
|
LICENSE = "BSD-2-Clause"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=e8478eae9f479e39bc34975193360298"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=e8478eae9f479e39bc34975193360298"
|
||||||
|
|
||||||
SRC_URI = " ${SOURCEFORGE_MIRROR}/iperf/${PN}-${PV}.tar.gz \
|
SRC_URI = "${SOURCEFORGE_MIRROR}/iperf2/${PN}-${PV}.tar.gz \
|
||||||
file://iperf-2.0.5_ManPage.patch \
|
file://stdbool-compilation.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "44b5536b67719f4250faed632a3cd016"
|
SRC_URI[md5sum] = "351b018b71176b8cb25f20eef6a9e37c"
|
||||||
SRC_URI[sha256sum] = "636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b"
|
SRC_URI[sha256sum] = "db02911f35686e808ed247160dfa766e08ae3f59d1e7dcedef0ffb2a6643f0bf"
|
||||||
|
|
||||||
S = "${WORKDIR}/${PN}-${PV}"
|
S = "${WORKDIR}/${PN}-${PV}"
|
||||||
|
|
|
@ -15,7 +15,7 @@ S = "${WORKDIR}/git"
|
||||||
|
|
||||||
SRCREV = "011953fa6c824ca518cf0ea074ddeede3726bdcd"
|
SRCREV = "011953fa6c824ca518cf0ea074ddeede3726bdcd"
|
||||||
|
|
||||||
DEPENDS = "curl openssl glib-2.0"
|
DEPENDS = "curl openssl glib-2.0 glib-2.0-native"
|
||||||
|
|
||||||
# rauc is invoking these depending the machine
|
# rauc is invoking these depending the machine
|
||||||
RDEPENDS_${PN}_append_sysmobts-v2 = " barebox-state"
|
RDEPENDS_${PN}_append_sysmobts-v2 = " barebox-state"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
||||||
|
|
||||||
PRINC="1"
|
PRINC="1"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
||||||
|
|
||||||
PRINC="4"
|
PRINC="4"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files-dora"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files-dora"], d)}:"
|
||||||
|
|
||||||
PRINC="4"
|
PRINC="4"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files-master"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files-master"], d)}:"
|
||||||
|
|
||||||
PRINC="4"
|
PRINC="4"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files/${PN}-${PV}"], d)}:${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files/${PN}-${PV}"], d)}:${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
||||||
|
|
||||||
PRINC="2"
|
PRINC="2"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
||||||
|
|
||||||
PRINC = "2"
|
PRINC = "2"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
||||||
|
|
||||||
PRINC="2"
|
PRINC="2"
|
||||||
|
|
|
@ -3,10 +3,11 @@ PRINC="3"
|
||||||
# We need networking to run as we have no native services yet
|
# We need networking to run as we have no native services yet
|
||||||
SYSTEMD_DISABLED_SYSV_SERVICES_remove = "networking dnsmasq"
|
SYSTEMD_DISABLED_SYSV_SERVICES_remove = "networking dnsmasq"
|
||||||
|
|
||||||
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
S_THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
||||||
|
|
||||||
SRC_URI += "file://alignment.service"
|
SRC_URI += "file://alignment.service"
|
||||||
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d ${D}${systemd_unitdir}/system/basic.target.wants
|
install -d ${D}${systemd_unitdir}/system/basic.target.wants
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
# This file is part of systemd.
|
||||||
|
#
|
||||||
|
# systemd is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU Lesser General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2.1 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# See systemd.conf(5) for details
|
||||||
|
|
||||||
|
[Manager]
|
||||||
|
#LogLevel=info
|
||||||
|
#LogTarget=journal-or-kmsg
|
||||||
|
#LogColor=yes
|
||||||
|
#LogLocation=no
|
||||||
|
#DumpCore=yes
|
||||||
|
#CrashShell=no
|
||||||
|
#ShowStatus=yes
|
||||||
|
#CrashChVT=1
|
||||||
|
#CPUAffinity=1 2
|
||||||
|
#DefaultControllers=cpu
|
||||||
|
#DefaultStandardOutput=journal
|
||||||
|
#DefaultStandardError=inherit
|
||||||
|
#JoinControllers=cpu,cpuacct,cpuset net_cls,net_prio
|
||||||
|
RuntimeWatchdogSec=20
|
||||||
|
ShutdownWatchdogSec=20
|
||||||
|
#CapabilityBoundingSet=
|
||||||
|
#TimerSlackNSec=
|
||||||
|
#DefaultLimitCPU=
|
||||||
|
#DefaultLimitFSIZE=
|
||||||
|
#DefaultLimitDATA=
|
||||||
|
#DefaultLimitSTACK=
|
||||||
|
#DefaultLimitCORE=
|
||||||
|
#DefaultLimitRSS=
|
||||||
|
#DefaultLimitNOFILE=
|
||||||
|
#DefaultLimitAS=
|
||||||
|
#DefaultLimitNPROC=
|
||||||
|
#DefaultLimitMEMLOCK=
|
||||||
|
#DefaultLimitLOCKS=
|
||||||
|
#DefaultLimitSIGPENDING=
|
||||||
|
#DefaultLimitMSGQUEUE=
|
||||||
|
#DefaultLimitNICE=
|
||||||
|
#DefaultLimitRTPRIO=
|
||||||
|
#DefaultLimitRTTIME=
|
|
@ -1,7 +1,7 @@
|
||||||
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
S_THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
||||||
|
|
||||||
PRINC="25"
|
PRINC="26"
|
||||||
|
|
||||||
SRC_URI += "file://journald.conf \
|
SRC_URI += "file://journald.conf \
|
||||||
file://legacy.conf \
|
file://legacy.conf \
|
||||||
|
@ -10,6 +10,8 @@ SRC_URI += "file://journald.conf \
|
||||||
|
|
||||||
SRC_URI_append_sysmobts-v2 = " file://system.conf"
|
SRC_URI_append_sysmobts-v2 = " file://system.conf"
|
||||||
SRC_URI_append_sysmocom-odu = " file://system.conf"
|
SRC_URI_append_sysmocom-odu = " file://system.conf"
|
||||||
|
SRC_URI_append_gsmk-owhw = " file://system.conf"
|
||||||
|
SRC_URI_append_sysmobts2100 = " file://system.conf"
|
||||||
|
|
||||||
# We want the journal on the ODU...
|
# We want the journal on the ODU...
|
||||||
SRC_URI_append_sysmocom-idu = " file://system.conf"
|
SRC_URI_append_sysmocom-idu = " file://system.conf"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
||||||
|
|
||||||
PRINC="9"
|
PRINC="9"
|
||||||
|
|
|
@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://../debian/copyright;md5=ee6bbaacb5db5f2973818f0902c3a
|
||||||
|
|
||||||
DEPENDS += "glib-2.0 libbsd"
|
DEPENDS += "glib-2.0 libbsd"
|
||||||
|
|
||||||
|
inherit pkgconfig
|
||||||
|
|
||||||
SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \
|
SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \
|
||||||
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz;name=netcat-patch"
|
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz;name=netcat-patch"
|
||||||
|
|
||||||
|
@ -31,7 +33,7 @@ python do_patch() {
|
||||||
do_compile() {
|
do_compile() {
|
||||||
cd ${S}
|
cd ${S}
|
||||||
pkgrel=4
|
pkgrel=4
|
||||||
oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
|
oe_runmake LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
|
@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "5b76e9cb0ee843208c17053315926e0e168db8a89fe960655a0d0f4871
|
||||||
|
|
||||||
do_deploy() {
|
do_deploy() {
|
||||||
install -d ${DEPLOY_DIR_TOOLS}
|
install -d ${DEPLOY_DIR_TOOLS}
|
||||||
install -m 0755 src/dvnixload ${DEPLOY_DIR_TOOLS}/dvnixload-${PV}
|
install -m 0755 ${B}/src/dvnixload ${DEPLOY_DIR_TOOLS}/dvnixload-${PV}
|
||||||
rm -f ${DEPLOY_DIR_TOOLS}/dvnixload
|
rm -f ${DEPLOY_DIR_TOOLS}/dvnixload
|
||||||
ln -sf ./dvnixload-${PV} ${DEPLOY_DIR_TOOLS}/dvnixload
|
ln -sf ./dvnixload-${PV} ${DEPLOY_DIR_TOOLS}/dvnixload
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
SUMMARY = "Firmware files for Nuran Wireless Litecell 1.5 Mainboard"
|
||||||
|
LICENSE = "CLOSED"
|
||||||
|
|
||||||
|
NRW_LC15_MIRROR ??= "gitlab.com/nrw_litecell15"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
inherit gitver-pkg gitver-repo
|
||||||
|
|
||||||
|
REPODIR = "${THISDIR}"
|
||||||
|
REPOFILE = "lc15-firmware_git.bb"
|
||||||
|
PR := "r${REPOGITFN}"
|
||||||
|
|
||||||
|
PV = "git${SRCPV}"
|
||||||
|
PKGV = "${PKGGITV}"
|
||||||
|
|
||||||
|
DEV_BRANCH = "${@ 'nrw/litecell15-next' if d.getVar('NRW_BSP_DEVEL', False) == "next" else 'nrw/litecell15'}"
|
||||||
|
DEV_SRCREV = "${AUTOREV}"
|
||||||
|
DEV_SRCURI := "git://${NRW_LC15_MIRROR}/litecell15-fw.git;protocol=https;branch=${DEV_BRANCH}"
|
||||||
|
|
||||||
|
REL_BRANCH = "nrw/litecell15"
|
||||||
|
REL_SRCREV = "68607b5c33a02883c50f9408f423234747407d99"
|
||||||
|
REL_SRCURI := "git://${NRW_LC15_MIRROR}/litecell15-fw.git;protocol=https;branch=${REL_BRANCH}"
|
||||||
|
|
||||||
|
BRANCH = "${@ '${DEV_BRANCH}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_BRANCH}'}"
|
||||||
|
SRCREV = "${@ '${DEV_SRCREV}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_SRCREV}'}"
|
||||||
|
SRC_URI = "${@ '${DEV_SRCURI}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_SRCURI}'}"
|
||||||
|
|
||||||
|
addtask showversion after do_compile before do_install
|
||||||
|
do_showversion() {
|
||||||
|
bbplain "${PN}: ${PKGGITV} => ${BRANCH}:${PKGGITH}"
|
||||||
|
}
|
||||||
|
|
||||||
|
inherit allarch
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
install -d ${D}${includedir}/nrw
|
||||||
|
install -d ${D}${includedir}/nrw/litecell15
|
||||||
|
install -m 0644 ${S}/inc/nrw/litecell15/* ${D}${includedir}/nrw/litecell15
|
||||||
|
|
||||||
|
install -d ${D}${base_libdir}/firmware
|
||||||
|
install -m 0644 ${S}/bin/* ${D}${base_libdir}/firmware
|
||||||
|
}
|
||||||
|
|
||||||
|
INSANE_SKIP_${PN} = "arch"
|
||||||
|
|
||||||
|
FILES_${PN} = "${base_libdir}/firmware/*"
|
||||||
|
FILES_${PN}-dev = "${includedir}/nrw/litecell15/*"
|
|
@ -0,0 +1,12 @@
|
||||||
|
Index: git/src/osmo-bts-sysmo/l1_if.h
|
||||||
|
===================================================================
|
||||||
|
--- git.orig/src/osmo-bts-sysmo/l1_if.h
|
||||||
|
+++ git/src/osmo-bts-sysmo/l1_if.h
|
||||||
|
@@ -132,6 +132,6 @@ int bts_check_for_ciph_cmd(struct femtol
|
||||||
|
void bts_check_for_first_ciphrd(struct femtol1_hdl *fl1h,
|
||||||
|
GsmL1_MsgUnitParam_t *msgUnitParam,
|
||||||
|
struct gsm_lchan *lchan);
|
||||||
|
-inline int l1if_ms_pwr_ctrl(struct gsm_lchan *lchan, const int uplink_target,
|
||||||
|
+int l1if_ms_pwr_ctrl(struct gsm_lchan *lchan, const int uplink_target,
|
||||||
|
const uint8_t ms_power, const float rxLevel);
|
||||||
|
#endif /* _FEMTO_L1_H */
|
|
@ -3,26 +3,36 @@ LICENSE = "AGPLv3"
|
||||||
LIC_FILES_CHKSUM="file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
|
LIC_FILES_CHKSUM="file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
|
||||||
|
|
||||||
SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;branch=sysmocom/0.3.5-stable;name=osmobts;destsuffix=git \
|
SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;branch=sysmocom/0.3.5-stable;name=osmobts;destsuffix=git \
|
||||||
git://git.osmocom.org/openbsc;protocol=git;branch=master;name=openbsc;destsuffix=openbsc"
|
git://git.osmocom.org/openbsc;protocol=git;branch=master;name=openbsc;destsuffix=openbsc \
|
||||||
SRCREV_osmobts = "1a2ff06d206fc4ff3cb8170ebe2b5570addc5be3"
|
file://gcc6-linking-fix.patch"
|
||||||
|
SRCREV_osmobts = "a4bd813081e788012c72f34d31150cdf02db307f"
|
||||||
SRCREV_openbsc = "57ee78078905c7499bd4e6857f8981d22badfcac"
|
SRCREV_openbsc = "57ee78078905c7499bd4e6857f8981d22badfcac"
|
||||||
PV = "0.4.3+git${SRCPV}"
|
PV = "0.4.3+git${SRCPV}"
|
||||||
PR = "r18.${META_TELEPHONY_OSMO_INC}"
|
PR = "r20.${META_TELEPHONY_OSMO_INC}"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
SRCREV_FORMAT = "openbsc-rosmobts"
|
SRCREV_FORMAT = "openbsc-rosmobts"
|
||||||
|
|
||||||
DEPENDS = "libosmocore libosmo-abis femtobts-api gpsd"
|
DEPENDS = "libosmocore libosmo-abis femtobts-api gpsd"
|
||||||
RDEPENDS_${PN} += "coreutils sysmobts-firmware (>= 5.1)"
|
DEPENDS_append_sysmobts-v2 = " femtobts-api"
|
||||||
RCONFLICTS_${PN} = "sysmobts-firmware (< 5.1)"
|
DEPENDS_append_sysmobts2100 = " lc15-firmware"
|
||||||
|
|
||||||
EXTRA_OECONF += "--enable-sysmocom-bts"
|
RDEPENDS_${PN} += "coreutils"
|
||||||
|
|
||||||
inherit autotools update-rc.d pkgconfig
|
RDEPENDS_${PN}_append_sysmobts-v2 = " sysmobts-firmware (>= 5.1)"
|
||||||
|
RCONFLICTS_${PN}_append_sysmobts-v2 = " sysmobts-firmware (< 5.1)"
|
||||||
|
|
||||||
|
RDEPENDS_${PN}_append_sysmobts2100 = " lc15-firmware"
|
||||||
|
|
||||||
|
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts"
|
||||||
|
EXTRA_OECONF_sysmobts2100 += "--enable-litecell15"
|
||||||
|
|
||||||
|
inherit autotools pkgconfig
|
||||||
|
|
||||||
|
|
||||||
# Select the API version
|
# Select the API version
|
||||||
inherit femtobts_api
|
inherit femtobts_api
|
||||||
CPPFLAGS += " ${BTS_HW_VERSION} "
|
CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
|
||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
ln -sf ../openbsc openbsc || true
|
ln -sf ../openbsc openbsc || true
|
||||||
|
@ -35,37 +45,48 @@ do_compile_append_sysmobts-v2() {
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d ${D}${sysconfdir}/osmocom
|
install -d ${D}${sysconfdir}/osmocom
|
||||||
install -m 0660 ${S}/doc/examples/osmo-bts.cfg ${D}${sysconfdir}/osmocom
|
|
||||||
install -m 0755 ${S}/contrib/respawn.sh ${D}${sysconfdir}/osmocom/
|
|
||||||
install -m 0755 ${S}/contrib/respawn-only.sh ${D}${sysconfdir}/osmocom/
|
|
||||||
install -m 0644 ${S}/contrib/screenrc-sysmobts ${D}${sysconfdir}/osmocom/
|
|
||||||
install -d ${D}${sysconfdir}/init.d
|
|
||||||
install -m 0755 ${S}/contrib/sysmobts.init ${D}${sysconfdir}/init.d/sysmobts
|
|
||||||
|
|
||||||
# Install systemd and enable on sysinit
|
|
||||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
|
||||||
install -m 0644 ${S}/contrib/sysmobts.service ${D}${systemd_unitdir}/system/
|
|
||||||
ln -sf ../sysmobts.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
|
||||||
|
|
||||||
# Future sysmobts-mgr handling
|
# Future sysmobts-mgr handling
|
||||||
install -m 0660 ${S}/doc/examples/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
|
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_unitdir}/system/
|
install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_unitdir}/system/
|
||||||
ln -sf ../sysmobts-mgr.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
ln -sf ../sysmobts-mgr.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append_sysmobts-v2() {
|
do_install_append_sysmobts-v2() {
|
||||||
install -m 0755 ${S}/contrib/sysmobts-calib/sysmobts-calib ${D}${bindir}/
|
install -m 0755 ${S}/contrib/sysmobts-calib/sysmobts-calib ${D}${bindir}/
|
||||||
|
|
||||||
|
install -m 0660 ${S}/doc/examples/osmo-bts.cfg ${D}${sysconfdir}/osmocom
|
||||||
|
|
||||||
|
# Install systemd and enable on sysinit
|
||||||
|
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
|
install -m 0660 ${S}/doc/examples/sysmo/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
|
||||||
|
install -m 0644 ${S}/contrib/sysmobts.service ${D}${systemd_unitdir}/system/
|
||||||
|
ln -sf ../sysmobts.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-bts.cfg"
|
do_install_append_sysmobts2100() {
|
||||||
CONFFILES_${PN} += "${sysconfdir}/osmocom/sysmobts-mgr.cfg"
|
install -m 0660 ${S}/doc/examples/litecell15/osmo-bts.cfg ${D}${sysconfdir}/osmocom
|
||||||
INITSCRIPT_PACKAGES = "${PN}"
|
|
||||||
INITSCRIPT_NAME_${PN} = "sysmobts"
|
|
||||||
INITSCRIPT_PARAMS_${PN} = "defaults 30 30"
|
|
||||||
|
|
||||||
|
# ensure consistent naming
|
||||||
|
mv ${D}/${bindir}/lc15bts-util ${D}/${bindir}/sysmobts-util
|
||||||
|
mv ${D}/${bindir}/lc15bts-mgr ${D}/${bindir}/sysmobts-mgr
|
||||||
|
|
||||||
|
# Install systemd and enable on sysinit
|
||||||
|
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
|
install -m 0660 ${S}/doc/examples/litecell15/lc15bts-mgr.cfg ${D}${sysconfdir}/osmocom/
|
||||||
|
install -m 0644 ${S}/contrib/osmo-bts-lc15.service ${D}${systemd_unitdir}/system/
|
||||||
|
ln -sf ../osmo-bts-lc15.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-bts.cfg"
|
||||||
|
CONFFILES_${PN}_append_sysmobts-v2 = " ${sysconfdir}/osmocom/sysmobts-mgr.cfg"
|
||||||
|
|
||||||
|
# somehow it seems not posible to use _append constructs on PACKAGES
|
||||||
|
#PACKAGES_append_sysmobts-v2 = " osmo-bts-remote sysmobts-calib sysmobts-util"
|
||||||
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util"
|
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util"
|
||||||
|
|
||||||
FILES_${PN} += "${systemd_unitdir}"
|
FILES_${PN} += "${systemd_unitdir}"
|
||||||
FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote "
|
FILES_osmo-bts-remote_sysmobts-v2 = " ${bindir}/osmo-bts-sysmo-remote "
|
||||||
FILES_sysmobts-calib = " ${bindir}/sysmobts-calib "
|
FILES_sysmobts-calib_sysmobts-v2 = " ${bindir}/sysmobts-calib "
|
||||||
FILES_sysmobts-util = " ${bindir}/sysmobts-util "
|
FILES_sysmobts-util = " ${bindir}/sysmobts-util "
|
||||||
|
|
|
@ -5,21 +5,26 @@ LIC_FILES_CHKSUM="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||||
SRC_URI = "git://git.osmocom.org/osmo-pcu.git;protocol=git;branch=jerlbeck/master"
|
SRC_URI = "git://git.osmocom.org/osmo-pcu.git;protocol=git;branch=jerlbeck/master"
|
||||||
SRCREV = "6e75bc7fe304eec274f6e485a8b23a164fd4e28e"
|
SRCREV = "6e75bc7fe304eec274f6e485a8b23a164fd4e28e"
|
||||||
PV = "0.4+git${SRCPV}"
|
PV = "0.4+git${SRCPV}"
|
||||||
PR = "r4.${META_TELEPHONY_OSMO_INC}"
|
PR = "r5.${META_TELEPHONY_OSMO_INC}"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
DEPENDS = "libosmocore femtobts-api osmo-bts"
|
DEPENDS = "libosmocore osmo-bts"
|
||||||
|
DEPENDS_append_sysmobts-v2 = " femtobts-api"
|
||||||
|
DEPENDS_append_litecell15 = " lc15-firmware"
|
||||||
|
DEPENDS_append_sysmobts2100 = " lc15-firmware"
|
||||||
|
|
||||||
# This implements PCU Interface v5 (GPRS RSSI)
|
# This implements PCU Interface v5 (GPRS RSSI)
|
||||||
RDEPENDS_${PN} = "osmo-bts (>= 0.4.0)"
|
RDEPENDS_${PN} = "osmo-bts (>= 0.4.0)"
|
||||||
|
|
||||||
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmocom-dsp"
|
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmocom-dsp"
|
||||||
|
EXTRA_OECONF_litecell15 += "--enable-lc15bts-phy"
|
||||||
|
EXTRA_OECONF_sysmobts2100 += "--enable-lc15bts-phy"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig
|
||||||
|
|
||||||
# Select the API version
|
# Select the API version
|
||||||
inherit femtobts_api
|
inherit femtobts_api
|
||||||
CPPFLAGS += " ${BTS_HW_VERSION} "
|
CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
# Install systemd and enable on sysinit
|
# Install systemd and enable on sysinit
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
SRC_URI = "git://git.sysmocom.de/sysmo-bts/u-boot;branch=v2011.12;protocol=git"
|
SRC_URI = "git://git.sysmocom.de/sysmo-bts/u-boot;branch=tracking/upstream-next;protocol=git"
|
||||||
SRCREV = "ab8a84d9ac4c9d938ec6fa85e3f4f640d883c774"
|
SRCREV = "64b07727fbb268bd19bacfed6711bdb060effcfa"
|
||||||
PV = "v2011.12+git${SRCPV}"
|
PV = "v2017.03+git${SRCPV}"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
PRINC = "13"
|
PRINC = "13"
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=22;md5=5ba4218ac89af7846802d0348df3fb90"
|
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=22;md5=2687c5ebfd9cb284491c3204b726ea29"
|
||||||
|
|
||||||
UBOOT_MACHINE_sysmobts-v2 = "davinci_sysmobts_v2_config"
|
UBOOT_MACHINE_sysmobts-v2 = "davinci_sysmobts_v2_config"
|
||||||
COMPATIBLE_MACHINE = "(sysmobts-v2)"
|
COMPATIBLE_MACHINE = "(sysmobts-v2)"
|
||||||
|
@ -13,14 +13,16 @@ COMPATIBLE_MACHINE = "(sysmobts-v2)"
|
||||||
UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}"
|
UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}"
|
||||||
UBOOT_SYMLINK = "u-boot-${MACHINE}"
|
UBOOT_SYMLINK = "u-boot-${MACHINE}"
|
||||||
|
|
||||||
|
DEPENDS += " bc-native "
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
rm ${D}/boot/*
|
rm ${D}/boot/*
|
||||||
}
|
}
|
||||||
|
|
||||||
do_deploy_prepend () {
|
do_deploy_prepend () {
|
||||||
install -d ${DEPLOYDIR}
|
install -d ${DEPLOYDIR}
|
||||||
install ${S}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE}.bin
|
install ${B}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE}.bin
|
||||||
install ${S}/u-boot ${DEPLOYDIR}/${UBOOT_IMAGE}.elf
|
install ${B}/u-boot ${DEPLOYDIR}/${UBOOT_IMAGE}.elf
|
||||||
|
|
||||||
cd ${DEPLOYDIR}
|
cd ${DEPLOYDIR}
|
||||||
rm -f ${UBOOT_SYMLINK}.bin
|
rm -f ${UBOOT_SYMLINK}.bin
|
||||||
|
|
|
@ -0,0 +1,78 @@
|
||||||
|
DESCRIPTION = "ubi with rescue slot"
|
||||||
|
|
||||||
|
LICENSE = "MIT"
|
||||||
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
|
||||||
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||||
|
|
||||||
|
PACKAGES = ""
|
||||||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
|
do_fetch[cleandirs] = "${S}"
|
||||||
|
do_unpack[noexec] = "1"
|
||||||
|
do_patch[noexec] = "1"
|
||||||
|
do_configure[noexec] = "1"
|
||||||
|
do_compile[noexec] = "1"
|
||||||
|
do_install[noexec] = "1"
|
||||||
|
do_populate_sysroot[noexec] = "1"
|
||||||
|
do_package[noexec] = "1"
|
||||||
|
do_packagedata[noexec] = "1"
|
||||||
|
do_package_write_ipk[noexec] = "1"
|
||||||
|
do_package_write_deb[noexec] = "1"
|
||||||
|
do_package_write_rpm[noexec] = "1"
|
||||||
|
|
||||||
|
do_fetch[depends] += "virtual/kernel:do_deploy image-rauc-rescue-initramfs:do_image_complete"
|
||||||
|
do_deploy[depends] += "mtd-utils-native:do_populate_sysroot"
|
||||||
|
|
||||||
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
|
do_fetch() {
|
||||||
|
mkdir -p "${S}/fs"
|
||||||
|
|
||||||
|
cp "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin" "${S}/fs/kernel"
|
||||||
|
cp "${DEPLOY_DIR_IMAGE}/image-rauc-rescue-initramfs-${MACHINE}.cpio.xz" "${S}/fs/initramfs"
|
||||||
|
}
|
||||||
|
|
||||||
|
do_fetch_append_gsmk-owhw() {
|
||||||
|
cp "${DEPLOY_DIR_IMAGE}/uImage-am335x-gsmk-owhw.dtb" "${S}/fs/devicetree"
|
||||||
|
}
|
||||||
|
|
||||||
|
IMAGE_ROOTFS = "${S}/fs"
|
||||||
|
IMAGE_NAME = "${PN}-${MACHINE}-${DATETIME}"
|
||||||
|
# Don't include the DATETIME variable in the sstate package sigantures
|
||||||
|
IMAGE_NAME[vardepsexclude] = "DATETIME"
|
||||||
|
IMAGE_LINK_NAME = "${PN}-${MACHINE}"
|
||||||
|
|
||||||
|
do_deploy() {
|
||||||
|
echo \[rescue\] > ubinize.cfg
|
||||||
|
echo mode=ubi >> ubinize.cfg
|
||||||
|
echo image=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rescue.ubifs >> ubinize.cfg
|
||||||
|
echo vol_id=0 >> ubinize.cfg
|
||||||
|
echo vol_size=14MiB >> ubinize.cfg
|
||||||
|
echo vol_type=dynamic >> ubinize.cfg
|
||||||
|
echo vol_name=rescue >> ubinize.cfg
|
||||||
|
echo \[system0\] >> ubinize.cfg
|
||||||
|
echo mode=ubi >> ubinize.cfg
|
||||||
|
echo vol_id=1 >> ubinize.cfg
|
||||||
|
echo vol_size=35MiB >> ubinize.cfg
|
||||||
|
echo vol_type=dynamic >> ubinize.cfg
|
||||||
|
echo vol_name=system0 >> ubinize.cfg
|
||||||
|
echo \[system1\] >> ubinize.cfg
|
||||||
|
echo mode=ubi >> ubinize.cfg
|
||||||
|
echo vol_id=2 >> ubinize.cfg
|
||||||
|
echo vol_size=35MiB >> ubinize.cfg
|
||||||
|
echo vol_type=dynamic >> ubinize.cfg
|
||||||
|
echo vol_name=system1 >> ubinize.cfg
|
||||||
|
echo \[data\] >> ubinize.cfg
|
||||||
|
echo mode=ubi >> ubinize.cfg
|
||||||
|
echo vol_id=3 >> ubinize.cfg
|
||||||
|
echo vol_size=16MiB >> ubinize.cfg
|
||||||
|
echo vol_type=dynamic >> ubinize.cfg
|
||||||
|
echo vol_name=data >> ubinize.cfg
|
||||||
|
echo vol_flags=autoresize >> ubinize.cfg
|
||||||
|
|
||||||
|
mkfs.ubifs --squash-uids -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rescue.ubifs ${MKUBIFS_ARGS}
|
||||||
|
ubinize -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubi ${UBINIZE_ARGS} ubinize.cfg
|
||||||
|
ln -sf ${IMAGE_NAME}.ubi ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.ubi
|
||||||
|
}
|
||||||
|
|
||||||
|
addtask deploy after do_fetch before do_build
|
|
@ -1,3 +1,4 @@
|
||||||
SDK-OSMO_append = "femtobts-api-dev gpsd-dev"
|
SDK-OSMO_append = "femtobts-api-dev gpsd-dev"
|
||||||
|
SDK-OSMO_append_sysmobts2100 = " lc15-firmware-dev"
|
||||||
|
|
||||||
PRINC = "2"
|
PRINC = "3"
|
||||||
|
|
Loading…
Reference in New Issue