Add 'meta-sysmocom-bsp/' from commit '90a211eb560d7c984a444f9697ff1d06e4bca838'
git-subtree-dir: meta-sysmocom-bsp git-subtree-mainline:88c1293c49
git-subtree-split:90a211eb56
This commit is contained in:
commit
a7befd603b
|
@ -0,0 +1,14 @@
|
|||
# This file is for getting archiving packages with configured sources(archive 's' after configure stage),logs(archive 'temp' after package_write_rpm),dump data
|
||||
# and creating diff file(get all environment variables and functions in building and mapping all content in 's' including patches to xxx.diff.gz.
|
||||
# All archived packages will be deployed in ${DEPLOY_DIR}/sources
|
||||
|
||||
inherit archiver
|
||||
|
||||
# Get archiving package with configured sources including patches
|
||||
do_configure[postfuncs] += "do_archive_configured_sources "
|
||||
|
||||
# Get archiving package with temp(logs) and scripts(.bb and inc files)
|
||||
do_package_write_rpm[prefuncs] += "do_archive_scripts_logs "
|
||||
|
||||
# Get dump date and create diff file
|
||||
do_package_write_rpm[postfuncs] += "do_dumpdata_create_diff_gz "
|
|
@ -0,0 +1,14 @@
|
|||
# This file is for getting archiving packages with original sources(archive 's' after unpack stage),patches,logs(archive 'temp' after package_write_rpm),dump data and
|
||||
# creating diff file(get all environment variables and functions in building and mapping all content in 's' including patches to xxx.diff.gz.
|
||||
# All archived packages will be deployed in ${DEPLOY_DIR}/sources
|
||||
|
||||
inherit archiver
|
||||
|
||||
# Get original sources archiving package with patches
|
||||
do_unpack[postfuncs] += "do_archive_original_sources_patches "
|
||||
|
||||
# Get archiving package with temp(logs) and scripts(.bb and inc files)
|
||||
do_package_write_rpm[prefuncs] += "do_archive_scripts_logs "
|
||||
|
||||
# Get dump date and create diff file
|
||||
do_package_write_rpm[postfuncs] += "do_dumpdata_create_diff_gz "
|
|
@ -0,0 +1,14 @@
|
|||
# This file is for getting archiving packages with patched sources(archive 's' before do_patch stage),logs(archive 'temp' after package_write_rpm),dump data and
|
||||
# creating diff file(get all environment variables and functions in building and mapping all content in 's' including patches to xxx.diff.gz.
|
||||
# All archived packages will be deployed in ${DEPLOY_DIR}/sources
|
||||
|
||||
inherit archiver
|
||||
|
||||
# Get archiving package with patched sources including patches
|
||||
do_patch[postfuncs] += "do_archive_patched_sources "
|
||||
|
||||
# Get archiving package with logs(temp) and scripts(.bb and .inc files)
|
||||
do_package_write_rpm[prefuncs] += "do_archive_scripts_logs "
|
||||
|
||||
# Get dump date and create diff file
|
||||
do_package_write_rpm[postfuncs] += "do_dumpdata_create_diff_gz "
|
|
@ -0,0 +1,450 @@
|
|||
# This file is used for archiving sources ,patches,and logs to tarball.
|
||||
# It also output building environment to xxx.dump.data and create xxx.diff.gz to record
|
||||
# all content in ${S} to a diff file.
|
||||
|
||||
ARCHIVE_EXCLUDE_FROM ?= ".pc autom4te.cache"
|
||||
ARCHIVE_TYPE ?= "TAR SRPM"
|
||||
DISTRO ?= "poky"
|
||||
PATCHES_ARCHIVE_WITH_SERIES = 'TRUE'
|
||||
|
||||
def get_bb_inc(d):
|
||||
'''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}'''
|
||||
import re
|
||||
import os
|
||||
import shutil
|
||||
|
||||
bbinc = []
|
||||
pat=re.compile('require\s*([^\s]*\.*)(.*)')
|
||||
work_dir = d.getVar('WORKDIR', True)
|
||||
bbfile = d.getVar('FILE', True)
|
||||
bbdir = os.path.dirname(bbfile)
|
||||
script_logs = os.path.join(work_dir,'script-logs')
|
||||
bb_inc = os.path.join(script_logs,'bb_inc')
|
||||
bb.mkdirhier(script_logs)
|
||||
bb.mkdirhier(bb_inc)
|
||||
|
||||
def find_file(dir,file):
|
||||
for root, dirs, files in os.walk(dir):
|
||||
if file in files:
|
||||
return os.path.join(root,file)
|
||||
|
||||
def get_inc (file):
|
||||
f = open(file,'r')
|
||||
for line in f.readlines():
|
||||
if 'require' not in line:
|
||||
bbinc.append(file)
|
||||
else:
|
||||
try:
|
||||
incfile = pat.match(line).group(1)
|
||||
incfile = bb.data.expand(os.path.basename(incfile),d)
|
||||
abs_incfile = find_file(bbdir,incfile)
|
||||
if abs_incfile:
|
||||
bbinc.append(abs_incfile)
|
||||
get_inc(abs_incfile)
|
||||
except AttributeError:
|
||||
pass
|
||||
get_inc(bbfile)
|
||||
bbinc = list(set(bbinc))
|
||||
for bbincfile in bbinc:
|
||||
shutil.copy(bbincfile,bb_inc)
|
||||
|
||||
try:
|
||||
bb.mkdirhier(os.path.join(script_logs,'temp'))
|
||||
oe.path.copytree(os.path.join(work_dir,'temp'), os.path.join(script_logs,'temp'))
|
||||
except (IOError,AttributeError):
|
||||
pass
|
||||
return script_logs
|
||||
|
||||
def get_series(d):
|
||||
'''copy patches and series file to a pointed directory which will be archived to tarball in ${WORKDIR}'''
|
||||
import shutil
|
||||
|
||||
src_patches=[]
|
||||
pf = d.getVar('PF', True)
|
||||
work_dir = d.getVar('WORKDIR', True)
|
||||
s = d.getVar('S',True)
|
||||
dest = os.path.join(work_dir, pf + '-series')
|
||||
shutil.rmtree(dest, ignore_errors=True)
|
||||
bb.mkdirhier(dest)
|
||||
|
||||
src_uri = d.getVar('SRC_URI', True).split()
|
||||
fetch = bb.fetch2.Fetch(src_uri, d)
|
||||
locals = (fetch.localpath(url) for url in fetch.urls)
|
||||
for local in locals:
|
||||
src_patches.append(local)
|
||||
if not cmp(work_dir,s):
|
||||
tmp_list = src_patches
|
||||
else:
|
||||
tmp_list = src_patches[1:]
|
||||
|
||||
for patch in tmp_list:
|
||||
try:
|
||||
shutil.copy(patch,dest)
|
||||
except IOError:
|
||||
if os.path.isdir(patch):
|
||||
bb.mkdirhier(os.path.join(dest,patch))
|
||||
oe.path.copytree(patch, os.path.join(dest,patch))
|
||||
return dest
|
||||
|
||||
def get_applying_patches(d):
|
||||
"""only copy applying patches to a pointed directory which will be archived to tarball"""
|
||||
import os
|
||||
import shutil
|
||||
|
||||
|
||||
pf = d.getVar('PF', True)
|
||||
work_dir = d.getVar('WORKDIR', True)
|
||||
dest = os.path.join(work_dir, pf + '-patches')
|
||||
shutil.rmtree(dest, ignore_errors=True)
|
||||
bb.mkdirhier(dest)
|
||||
|
||||
|
||||
patches = src_patches(d)
|
||||
for patch in patches:
|
||||
_, _, local, _, _, parm = bb.decodeurl(patch)
|
||||
if local:
|
||||
shutil.copy(local,dest)
|
||||
return dest
|
||||
|
||||
def not_tarball(d):
|
||||
'''packages including key words 'work-shared','native', 'task-' will be passed'''
|
||||
import os
|
||||
|
||||
workdir = d.getVar('WORKDIR',True)
|
||||
s = d.getVar('S',True)
|
||||
if 'work-shared' in s or 'task-' in workdir or 'native' in workdir:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def get_source_from_downloads(d,stage_name):
|
||||
'''copy tarball of $P to $WORKDIR when this tarball exists in $DL_DIR'''
|
||||
if stage_name in 'patched' 'configured':
|
||||
return
|
||||
pf = d.getVar('PF', True)
|
||||
dl_dir = d.getVar('DL_DIR',True)
|
||||
try:
|
||||
source = os.path.join(dl_dir,os.path.basename(d.getVar('SRC_URI', True).split()[0]))
|
||||
if os.path.exists(source) and not os.path.isdir(source):
|
||||
return source
|
||||
except (IndexError, OSError):
|
||||
pass
|
||||
return ''
|
||||
|
||||
def do_tarball(workdir,srcdir,tarname):
|
||||
'''tar "srcdir" under "workdir" to "tarname"'''
|
||||
import tarfile
|
||||
|
||||
sav_dir = os.getcwd()
|
||||
os.chdir(workdir)
|
||||
if (len(os.listdir(srcdir))) != 0:
|
||||
tar = tarfile.open(tarname, "w:gz")
|
||||
tar.add(srcdir)
|
||||
tar.close()
|
||||
else:
|
||||
tarname = ''
|
||||
os.chdir(sav_dir)
|
||||
return tarname
|
||||
|
||||
def archive_sources_from_directory(d,stage_name):
|
||||
'''archive sources codes tree to tarball when tarball of $P doesn't exist in $DL_DIR'''
|
||||
import shutil
|
||||
|
||||
s = d.getVar('S',True)
|
||||
work_dir=d.getVar('WORKDIR', True)
|
||||
PF = d.getVar('PF',True)
|
||||
tarname = PF + '-' + stage_name + ".tar.gz"
|
||||
|
||||
if os.path.exists(s) and work_dir in s:
|
||||
try:
|
||||
source_dir = os.path.join(work_dir,[ i for i in s.replace(work_dir,'').split('/') if i][0])
|
||||
except IndexError:
|
||||
if not cmp(s,work_dir):
|
||||
return ''
|
||||
else:
|
||||
return ''
|
||||
source = os.path.basename(source_dir)
|
||||
return do_tarball(work_dir,source,tarname)
|
||||
|
||||
def archive_sources(d,stage_name):
|
||||
'''copy tarball from $DL_DIR to $WORKDIR if have tarball, archive source codes tree in $WORKDIR if $P is directory instead of tarball'''
|
||||
import shutil
|
||||
work_dir = d.getVar('WORKDIR',True)
|
||||
file = get_source_from_downloads(d,stage_name)
|
||||
if file:
|
||||
shutil.copy(file,work_dir)
|
||||
file = os.path.basename(file)
|
||||
else:
|
||||
file = archive_sources_from_directory(d,stage_name)
|
||||
return file
|
||||
|
||||
|
||||
def archive_patches(d,patchdir,series):
|
||||
'''archive patches to tarball and also include series files if 'series' is True'''
|
||||
import shutil
|
||||
|
||||
s = d.getVar('S',True)
|
||||
work_dir = d.getVar('WORKDIR', True)
|
||||
patch_dir = os.path.basename(patchdir)
|
||||
tarname = patch_dir + ".tar.gz"
|
||||
if series == 'all' and os.path.exists(os.path.join(s,'patches/series')):
|
||||
shutil.copy(os.path.join(s,'patches/series'),patchdir)
|
||||
tarname = do_tarball(work_dir,patch_dir,tarname)
|
||||
shutil.rmtree(patchdir, ignore_errors=True)
|
||||
return tarname
|
||||
|
||||
def select_archive_patches(d,option):
|
||||
'''select to archive all patches including non-applying and series or applying patches '''
|
||||
if option == "all":
|
||||
patchdir = get_series(d)
|
||||
elif option == "applying":
|
||||
patchdir = get_applying_patches(d)
|
||||
try:
|
||||
os.rmdir(patchdir)
|
||||
except OSError:
|
||||
tarpatch = archive_patches(d,patchdir,option)
|
||||
return tarpatch
|
||||
return
|
||||
|
||||
def archive_logs(d,logdir,bbinc=False):
|
||||
'''archive logs in temp to tarball and .bb and .inc files if bbinc is True '''
|
||||
import shutil
|
||||
|
||||
pf = d.getVar('PF',True)
|
||||
work_dir = d.getVar('WORKDIR',True)
|
||||
log_dir = os.path.basename(logdir)
|
||||
tarname = pf + '-' + log_dir + ".tar.gz"
|
||||
tarname = do_tarball(work_dir,log_dir,tarname)
|
||||
if bbinc:
|
||||
shutil.rmtree(logdir, ignore_errors=True)
|
||||
return tarname
|
||||
|
||||
def get_licenses(d):
|
||||
'''get licenses for running .bb file'''
|
||||
licenses = d.getVar('LICENSE', 1).replace('&', '|')
|
||||
licenses = licenses.replace('(', '').replace(')', '')
|
||||
clean_licenses = ""
|
||||
for x in licenses.split():
|
||||
if x.strip() == '' or x == 'CLOSED':
|
||||
continue
|
||||
if x != "|":
|
||||
clean_licenses += x
|
||||
if '|' in clean_licenses:
|
||||
clean_licenses = clean_licenses.replace('|','')
|
||||
return clean_licenses
|
||||
|
||||
|
||||
def move_tarball_deploy(d,tarball_list):
|
||||
'''move tarball in location to ${DEPLOY_DIR}/sources'''
|
||||
import shutil
|
||||
|
||||
if tarball_list is []:
|
||||
return
|
||||
target_sys = d.getVar('TARGET_SYS', True)
|
||||
pf = d.getVar('PF', True)
|
||||
licenses = get_licenses(d)
|
||||
work_dir = d.getVar('WORKDIR',True)
|
||||
tar_sources = d.getVar('DEPLOY_DIR', True) + '/sources/' + target_sys + '/' + licenses + '/' + pf
|
||||
if not os.path.exists(tar_sources):
|
||||
bb.mkdirhier(tar_sources)
|
||||
for source in tarball_list:
|
||||
if source:
|
||||
if os.path.exists(os.path.join(tar_sources, source)):
|
||||
os.remove(os.path.join(tar_sources,source))
|
||||
shutil.move(os.path.join(work_dir,source),tar_sources)
|
||||
|
||||
def check_archiving_type(d):
|
||||
'''check the type for archiving package('tar' or 'srpm')'''
|
||||
try:
|
||||
if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True).upper() not in d.getVar('ARCHIVE_TYPE', True).split():
|
||||
raise AttributeError
|
||||
except AttributeError:
|
||||
bb.fatal("\"SOURCE_ARCHIVE_PACKAGE_TYPE\" is \'tar\' or \'srpm\', no other types")
|
||||
|
||||
def store_package(d,package_name):
|
||||
'''store tarbablls name to file "tar-package"'''
|
||||
try:
|
||||
f = open(os.path.join(d.getVar('WORKDIR',True),'tar-package'),'a')
|
||||
f.write(package_name + ' ')
|
||||
f.close()
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
def get_package(d):
|
||||
'''get tarballs name from "tar-package"'''
|
||||
work_dir = (d.getVar('WORKDIR', True))
|
||||
tarpackage = os.path.join(work_dir,'tar-package')
|
||||
try:
|
||||
f = open(tarpackage,'r')
|
||||
line = list(set(f.readline().replace('\n','').split()))
|
||||
except IOError:
|
||||
pass
|
||||
f.close()
|
||||
return line
|
||||
|
||||
|
||||
def archive_sources_patches(d,stage_name):
|
||||
'''archive sources and patches to tarball. stage_name will append strings ${stage_name} to ${PR} as middle name. for example, zlib-1.4.6-prepatch(stage_name).tar.gz '''
|
||||
import shutil
|
||||
|
||||
check_archiving_type(d)
|
||||
if not_tarball(d):
|
||||
return
|
||||
|
||||
source_tar_name = archive_sources(d,stage_name)
|
||||
if stage_name == "prepatch":
|
||||
if d.getVar('PATCHES_ARCHIVE_WITH_SERIES',True).upper() == 'TRUE':
|
||||
patch_tar_name = select_archive_patches(d,"all")
|
||||
elif d.getVar('PATCHES_ARCHIVE_WITH_SERIES',True).upper() == 'FALSE':
|
||||
patch_tar_name = select_archive_patches(d,"applying")
|
||||
else:
|
||||
bb.fatal("Please define 'PATCHES_ARCHIVE_WITH_SERIES' is strings 'True' or 'False' ")
|
||||
else:
|
||||
patch_tar_name = ''
|
||||
|
||||
if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True).upper() not in 'SRPM':
|
||||
move_tarball_deploy(d,[source_tar_name,patch_tar_name])
|
||||
else:
|
||||
tarpackage = os.path.join(d.getVar('WORKDIR', True),'tar-package')
|
||||
if os.path.exists(tarpackage):
|
||||
os.remove(tarpackage)
|
||||
for package in os.path.basename(source_tar_name), patch_tar_name:
|
||||
if package:
|
||||
store_package(d,str(package) + ' ')
|
||||
|
||||
def archive_scripts_logs(d):
|
||||
'''archive scripts and logs. scripts include .bb and .inc files and logs include stuff in "temp".'''
|
||||
|
||||
work_dir = d.getVar('WORKDIR', True)
|
||||
temp_dir = os.path.join(work_dir,'temp')
|
||||
source_archive_log_with_scripts = d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True)
|
||||
if source_archive_log_with_scripts == 'logs_with_scripts':
|
||||
logdir = get_bb_inc(d)
|
||||
tarlog = archive_logs(d,logdir,True)
|
||||
elif source_archive_log_with_scripts == 'logs':
|
||||
if os.path.exists(temp_dir):
|
||||
tarlog = archive_logs(d,temp_dir,False)
|
||||
else:
|
||||
return
|
||||
|
||||
if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True).upper() not in 'SRPM':
|
||||
move_tarball_deploy(d,[tarlog])
|
||||
|
||||
else:
|
||||
store_package(d,tarlog)
|
||||
|
||||
def dumpdata(d):
|
||||
'''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)
|
||||
distro = bb.data.getVar('DISTRO', d, 1)
|
||||
s = d.getVar('S', True)
|
||||
pf = d.getVar('PF', True)
|
||||
target_sys = d.getVar('TARGET_SYS', True)
|
||||
licenses = get_licenses(d)
|
||||
dumpdir = d.getVar('DEPLOY_DIR', True) + '/sources/' + target_sys + '/' + licenses + '/' + pf
|
||||
if not os.path.exists(dumpdir):
|
||||
bb.mkdirhier(dumpdir)
|
||||
|
||||
dumpfile = os.path.join(dumpdir, bb.data.expand("${P}-${PR}.showdata.dump",d))
|
||||
|
||||
bb.note("Dumping metadata into '%s'" % dumpfile)
|
||||
f = open(dumpfile, "w")
|
||||
# emit variables and shell functions
|
||||
bb.data.emit_env(f, d, True)
|
||||
# emit the metadata which isnt valid shell
|
||||
for e in d.keys():
|
||||
if bb.data.getVarFlag(e, 'python', d):
|
||||
f.write("\npython %s () {\n%s}\n" % (e, bb.data.getVar(e, d, 1)))
|
||||
f.close()
|
||||
|
||||
def create_diff_gz(d):
|
||||
'''creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.g gz for mapping all content in 's' including patches to xxx.diff.gz'''
|
||||
import shutil
|
||||
|
||||
work_dir = d.getVar('WORKDIR', True)
|
||||
exclude_from = d.getVar('ARCHIVE_EXCLUDE_FROM', True).split()
|
||||
pf = d.getVar('PF', True)
|
||||
licenses = get_licenses(d)
|
||||
target_sys = d.getVar('TARGET_SYS', True)
|
||||
diff_dir = d.getVar('DEPLOY_DIR', True) + '/sources/' + target_sys + '/' + licenses + '/' + pf
|
||||
diff_file = os.path.join(diff_dir, bb.data.expand("${P}-${PR}.diff.gz",d))
|
||||
|
||||
f = open(os.path.join(work_dir,'temp/exclude-from-file'), 'a')
|
||||
for i in exclude_from:
|
||||
f.write(i)
|
||||
f.write("\n")
|
||||
f.close()
|
||||
|
||||
s=d.getVar('S', True)
|
||||
distro = d.getVar('DISTRO',True)
|
||||
dest = s + '/' + distro + '/files'
|
||||
if not os.path.exists(dest):
|
||||
bb.mkdirhier(dest)
|
||||
for i in os.listdir(os.getcwd()):
|
||||
if os.path.isfile(i):
|
||||
try:
|
||||
shutil.copy(i, dest)
|
||||
except IOError:
|
||||
os.system('fakeroot cp -rf ' + i + " " + dest )
|
||||
|
||||
bb.note("Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz")
|
||||
cmd = "LC_ALL=C TZ=UTC0 diff --exclude-from=" + work_dir + "/temp/exclude-from-file -Naur " + s + '.org' + ' ' + s + " | gzip -c > " + diff_file
|
||||
d.setVar('DIFF', cmd + "\n")
|
||||
d.setVarFlag('DIFF', 'func', '1')
|
||||
bb.build.exec_func('DIFF', d)
|
||||
shutil.rmtree(s + '.org', ignore_errors=True)
|
||||
|
||||
# This function will run when user want to get tarball for sources and patches after do_unpack
|
||||
python do_archive_original_sources_patches(){
|
||||
archive_sources_patches(d,'prepatch')
|
||||
}
|
||||
|
||||
# This function will run when user want to get tarball for patched sources after do_patch
|
||||
python do_archive_patched_sources(){
|
||||
archive_sources_patches(d,'patched')
|
||||
}
|
||||
|
||||
# This function will run when user want to get tarball for configured sources after do_configure
|
||||
python do_archive_configured_sources(){
|
||||
archive_sources_patches(d,'configured')
|
||||
}
|
||||
|
||||
# This function will run when user want to get tarball for logs or both logs and scripts(.bb and .inc files)
|
||||
python do_archive_scripts_logs(){
|
||||
archive_scripts_logs(d)
|
||||
}
|
||||
|
||||
# This function will run when user want to know what variable and functions in a running task are and also can get a diff file including
|
||||
# all content a package should include.
|
||||
python do_dumpdata_create_diff_gz(){
|
||||
dumpdata(d)
|
||||
create_diff_gz(d)
|
||||
}
|
||||
|
||||
# This functions prepare for archiving "linux-yocto" because this package create directory 's' before do_patch instead of after do_unpack.
|
||||
# This is special control for archiving linux-yocto only.
|
||||
python do_archive_linux_yocto(){
|
||||
s = d.getVar('S', True)
|
||||
if 'linux-yocto' in s:
|
||||
source_tar_name = archive_sources(d,'')
|
||||
if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True).upper() not in 'SRPM':
|
||||
move_tarball_deploy(d,[source_tar_name,''])
|
||||
}
|
||||
do_kernel_checkout[postfuncs] += "do_archive_linux_yocto "
|
||||
|
||||
# remove tarball for sources, patches and logs after creating srpm.
|
||||
python do_remove_tarball(){
|
||||
if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True).upper() == 'SRPM':
|
||||
work_dir = d.getVar('WORKDIR', True)
|
||||
try:
|
||||
for file in os.listdir(os.getcwd()):
|
||||
if file in get_package(d):
|
||||
os.remove(file)
|
||||
os.remove(os.path.join(work_dir,'tar-package'))
|
||||
except (TypeError,OSError):
|
||||
pass
|
||||
}
|
||||
do_remove_taball[deptask] = "do_archive_scripts_logs"
|
||||
do_package_write_rpm[postfuncs] += "do_remove_tarball "
|
||||
export get_licenses
|
||||
export get_package
|
|
@ -0,0 +1,4 @@
|
|||
# This will set BTS_HW_VERSION depending on the machine
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
BTS_HW_VERSION_sysmobts-v1 = "-DHW_SYSMOBTS_V1"
|
||||
BTS_HW_VERSION_sysmobts-v2 = "-DHW_SYSMOBTS_V2"
|
|
@ -0,0 +1,10 @@
|
|||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH := "${BBPATH}:${LAYERDIR}"
|
||||
|
||||
# We have a packages directory, add to BBFILES
|
||||
BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "sysmocom-bsp"
|
||||
BBFILE_PATTERN_sysmocom-bsp := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_sysmocom-bsp = "1"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
SOC_FAMILY = "dm6446"
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
TARGET_ARCH = "arm"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
|
||||
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
|
||||
|
||||
PREFERRED_VERSION_u-boot = "git"
|
||||
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
SERIAL_CONSOLE ?= "115200 ttyS0"
|
||||
EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
|
||||
|
||||
#ROOT_FLASH_SIZE = "29"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 serial"
|
||||
|
||||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
|
||||
busybox-ifplugd \
|
||||
watchdog \
|
||||
kernel-module-davinci-wdt \
|
||||
kernel-module-dspdl \
|
||||
kernel-module-dspdl-dm644x \
|
||||
kernel-module-fpgadl \
|
||||
kernel-module-fpgadl-par \
|
||||
kernel-module-leds-gpio \
|
||||
kernel-module-msgqueue \
|
||||
kernel-module-nls-ascii \
|
||||
kernel-module-nls-utf8 \
|
||||
kernel-module-rtfifo "
|
||||
|
||||
IMAGE_FSTYPES ?= "tar.bz2 cpio.gz ubifs ubi jffs2"
|
||||
|
||||
MACHINE_EXTRA_RDEPENDS = "task-sysmocom-bts sysmobts-firmware watchdog"
|
||||
#MACHINE_EXTRA_RRECOMMENDS = "dsplink-module"
|
||||
|
||||
require conf/machine/include/tune-arm926ejs.inc
|
||||
require conf/machine/include/dm6446.inc
|
|
@ -0,0 +1,13 @@
|
|||
DEFAULTTUNE ?= "geode"
|
||||
TUNE_PKGARCH ?= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'geode', '', d)}"
|
||||
|
||||
require conf/machine/include/tune-i586.inc
|
||||
|
||||
# Extra tune features
|
||||
TUNEVALID[geode] = "Enable geode specific processor optimizations"
|
||||
TUNE_CCARGS += "${@bb.utils.contains('TUNE_FEATURES', 'geode', '-march=geode -mtune=geode', '', d)}"
|
||||
|
||||
# Extra tune selections
|
||||
TUNE_FEATURES_tune-geode ?= "${TUNE_FEATURES_tune-x86} geode"
|
||||
BASE_LIB_tune-geode ?= "lib"
|
||||
PACKAGE_EXTRA_ARCHS_tune-geode = "${PACKAGE_EXTRA_ARCHS_tune-x86} i386 i486 i586 geode"
|
|
@ -0,0 +1,14 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: sysmocom - systems for mobile communications GmbH GSM BTS
|
||||
#@DESCRIPTION: sysmocom - systems for mobile communications GmbH GSM BTS
|
||||
|
||||
# Make sure we build these too
|
||||
EXTRA_IMAGEDEPENDS = "dvnixload-native ubl u-boot sysmobts-firmware"
|
||||
EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pagesize=0x800 --no-cleanmarkers --pad=0x2000000 -n"
|
||||
|
||||
# ubifs config
|
||||
MKUBIFS_ARGS = "-m 2048 -e 129024 -c 400"
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
require conf/machine/include/sysmobts.inc
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: sysmocom - systems for mobile communications GmbH GSM Superfemto
|
||||
#@DESCRIPTION: sysmocom - systems for mobile communications GmbH GSM Superfemto
|
||||
|
||||
# Make sure we build these too
|
||||
EXTRA_IMAGEDEPENDS = "dvnixload-native ubl u-boot sysmobts-firmware"
|
||||
EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pagesize=0x800 --no-cleanmarkers --pad=0x2000000 -n"
|
||||
|
||||
# ubifs config
|
||||
MKUBIFS_ARGS ?= "-m 2048 -e 129024 -c 400"
|
||||
UBINIZE_ARGS ?= "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
|
||||
require conf/machine/include/sysmobts.inc
|
|
@ -0,0 +1,36 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: common_pc
|
||||
#@DESCRIPTION: Machine configuration for running a common x86
|
||||
|
||||
TARGET_ARCH = "i586"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
|
||||
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
|
||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
|
||||
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux"
|
||||
|
||||
require conf/machine/include/tune-geode.inc
|
||||
|
||||
MACHINE_FEATURES += "kernel26 x86 usbhost pci acpi"
|
||||
|
||||
KERNEL_IMAGETYPE = "bzImage"
|
||||
|
||||
IMAGE_FSTYPES ?= "tar.gz ext3"
|
||||
|
||||
SERIAL_CONSOLE = "38400 ttyS0"
|
||||
|
||||
# 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 = "\
|
||||
busybox-ifplugd "
|
|
@ -0,0 +1,19 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
|
||||
PRINC = "6"
|
||||
|
||||
SRC_URI += "file://busybox-ifplugd.sh \
|
||||
file://ifplugd.sh"
|
||||
|
||||
PACKAGES =+ "${PN}-ifplugd"
|
||||
|
||||
FILES_${PN}-ifplugd = "${sysconfdir}/ifplugd.sh ${sysconfdir}/init.d/busybox-ifplugd.sh"
|
||||
|
||||
INITSCRIPT_PACKAGES += "${PN}-ifplugd"
|
||||
INITSCRIPT_NAME = "busybox-ifplugd.sh"
|
||||
|
||||
|
||||
do_install_append() {
|
||||
install -m 0755 ${WORKDIR}/ifplugd.sh ${D}${sysconfdir}/
|
||||
install -m 0755 ${WORKDIR}/busybox-ifplugd.sh ${D}${sysconfdir}/init.d/
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
DAEMON=/usr/bin/ifplugd
|
||||
NAME=ifplugd
|
||||
DESC="Busybox ifplugd Server"
|
||||
ARGS=" -i eth0 -M -I -r /etc/ifplugd.sh"
|
||||
|
||||
test -f $DAEMON || exit 1
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "starting $DESC: $NAME... "
|
||||
/sbin/start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
|
||||
echo "done."
|
||||
;;
|
||||
stop)
|
||||
echo -n "stopping $DESC: $NAME... "
|
||||
/sbin/start-stop-daemon -K -n $NAME
|
||||
echo "done."
|
||||
;;
|
||||
restart)
|
||||
echo "restarting $DESC: $NAME... "
|
||||
$0 stop
|
||||
$0 start
|
||||
echo "done."
|
||||
;;
|
||||
reload)
|
||||
echo -n "reloading $DESC: $NAME... "
|
||||
killall -HUP $(basename ${DAEMON})
|
||||
echo "done."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,924 @@
|
|||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Busybox version: 1.16.2
|
||||
# Tue Oct 26 15:07:52 2010
|
||||
#
|
||||
CONFIG_HAVE_DOT_CONFIG=y
|
||||
|
||||
#
|
||||
# Busybox Settings
|
||||
#
|
||||
|
||||
#
|
||||
# General Configuration
|
||||
#
|
||||
# CONFIG_DESKTOP is not set
|
||||
# CONFIG_EXTRA_COMPAT is not set
|
||||
# CONFIG_INCLUDE_SUSv2 is not set
|
||||
# CONFIG_USE_PORTABLE_CODE is not set
|
||||
CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
|
||||
# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
|
||||
# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
|
||||
CONFIG_SHOW_USAGE=y
|
||||
# CONFIG_FEATURE_VERBOSE_USAGE is not set
|
||||
CONFIG_FEATURE_COMPRESS_USAGE=y
|
||||
# CONFIG_FEATURE_INSTALLER is not set
|
||||
CONFIG_LOCALE_SUPPORT=y
|
||||
# CONFIG_FEATURE_ASSUME_UNICODE is not set
|
||||
# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set
|
||||
CONFIG_LONG_OPTS=y
|
||||
CONFIG_FEATURE_DEVPTS=y
|
||||
# CONFIG_FEATURE_CLEAN_UP is not set
|
||||
CONFIG_FEATURE_PIDFILE=y
|
||||
CONFIG_FEATURE_SUID=y
|
||||
CONFIG_FEATURE_SUID_CONFIG=y
|
||||
CONFIG_FEATURE_SUID_CONFIG_QUIET=y
|
||||
# CONFIG_SELINUX is not set
|
||||
# CONFIG_FEATURE_PREFER_APPLETS is not set
|
||||
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
|
||||
CONFIG_FEATURE_SYSLOG=y
|
||||
CONFIG_FEATURE_HAVE_RPC=y
|
||||
|
||||
#
|
||||
# Build Options
|
||||
#
|
||||
# CONFIG_STATIC is not set
|
||||
# CONFIG_PIE is not set
|
||||
# CONFIG_NOMMU is not set
|
||||
# CONFIG_BUILD_LIBBUSYBOX is not set
|
||||
# CONFIG_FEATURE_INDIVIDUAL is not set
|
||||
# CONFIG_FEATURE_SHARED_BUSYBOX is not set
|
||||
CONFIG_LFS=y
|
||||
CONFIG_CROSS_COMPILER_PREFIX=""
|
||||
CONFIG_EXTRA_CFLAGS=""
|
||||
|
||||
#
|
||||
# Debugging Options
|
||||
#
|
||||
# CONFIG_DEBUG is not set
|
||||
# CONFIG_DEBUG_PESSIMIZE is not set
|
||||
# CONFIG_WERROR is not set
|
||||
CONFIG_NO_DEBUG_LIB=y
|
||||
# CONFIG_DMALLOC is not set
|
||||
# CONFIG_EFENCE is not set
|
||||
|
||||
#
|
||||
# Installation Options
|
||||
#
|
||||
# CONFIG_INSTALL_NO_USR is not set
|
||||
CONFIG_INSTALL_APPLET_SYMLINKS=y
|
||||
# CONFIG_INSTALL_APPLET_HARDLINKS is not set
|
||||
# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set
|
||||
# CONFIG_INSTALL_APPLET_DONT is not set
|
||||
# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set
|
||||
# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set
|
||||
# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set
|
||||
CONFIG_PREFIX="./_install"
|
||||
|
||||
#
|
||||
# Busybox Library Tuning
|
||||
#
|
||||
CONFIG_PASSWORD_MINLEN=6
|
||||
CONFIG_MD5_SIZE_VS_SPEED=2
|
||||
CONFIG_FEATURE_FAST_TOP=y
|
||||
# CONFIG_FEATURE_ETC_NETWORKS is not set
|
||||
CONFIG_FEATURE_EDITING=y
|
||||
CONFIG_FEATURE_EDITING_MAX_LEN=1024
|
||||
# CONFIG_FEATURE_EDITING_VI is not set
|
||||
CONFIG_FEATURE_EDITING_HISTORY=15
|
||||
CONFIG_FEATURE_EDITING_SAVEHISTORY=y
|
||||
CONFIG_FEATURE_TAB_COMPLETION=y
|
||||
CONFIG_FEATURE_USERNAME_COMPLETION=y
|
||||
CONFIG_FEATURE_EDITING_FANCY_PROMPT=y
|
||||
# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set
|
||||
CONFIG_FEATURE_NON_POSIX_CP=y
|
||||
# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set
|
||||
CONFIG_FEATURE_COPYBUF_KB=4
|
||||
CONFIG_MONOTONIC_SYSCALL=y
|
||||
CONFIG_IOCTL_HEX2STR_ERROR=y
|
||||
CONFIG_FEATURE_HWIB=y
|
||||
|
||||
#
|
||||
# Applets
|
||||
#
|
||||
|
||||
#
|
||||
# Archival Utilities
|
||||
#
|
||||
CONFIG_FEATURE_SEAMLESS_LZMA=y
|
||||
CONFIG_FEATURE_SEAMLESS_BZ2=y
|
||||
CONFIG_FEATURE_SEAMLESS_GZ=y
|
||||
CONFIG_FEATURE_SEAMLESS_Z=y
|
||||
CONFIG_AR=y
|
||||
# CONFIG_FEATURE_AR_LONG_FILENAMES is not set
|
||||
CONFIG_BUNZIP2=y
|
||||
# CONFIG_BZIP2 is not set
|
||||
CONFIG_CPIO=y
|
||||
# CONFIG_FEATURE_CPIO_O is not set
|
||||
# CONFIG_FEATURE_CPIO_P is not set
|
||||
# CONFIG_DPKG is not set
|
||||
# CONFIG_DPKG_DEB is not set
|
||||
# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
|
||||
CONFIG_GUNZIP=y
|
||||
CONFIG_GZIP=y
|
||||
# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set
|
||||
# CONFIG_LZOP is not set
|
||||
# CONFIG_LZOP_COMPR_HIGH is not set
|
||||
# CONFIG_RPM2CPIO is not set
|
||||
# CONFIG_RPM is not set
|
||||
CONFIG_TAR=y
|
||||
CONFIG_FEATURE_TAR_CREATE=y
|
||||
CONFIG_FEATURE_TAR_AUTODETECT=y
|
||||
CONFIG_FEATURE_TAR_FROM=y
|
||||
CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y
|
||||
# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set
|
||||
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
|
||||
# CONFIG_FEATURE_TAR_LONG_OPTIONS is not set
|
||||
# CONFIG_FEATURE_TAR_UNAME_GNAME is not set
|
||||
# CONFIG_FEATURE_TAR_NOPRESERVE_TIME is not set
|
||||
# CONFIG_UNCOMPRESS is not set
|
||||
# CONFIG_UNLZMA is not set
|
||||
# CONFIG_FEATURE_LZMA_FAST is not set
|
||||
CONFIG_UNZIP=y
|
||||
|
||||
#
|
||||
# Coreutils
|
||||
#
|
||||
CONFIG_BASENAME=y
|
||||
# CONFIG_CAL is not set
|
||||
CONFIG_CAT=y
|
||||
# CONFIG_CATV is not set
|
||||
CONFIG_CHGRP=y
|
||||
CONFIG_CHMOD=y
|
||||
CONFIG_CHOWN=y
|
||||
# CONFIG_FEATURE_CHOWN_LONG_OPTIONS is not set
|
||||
CONFIG_CHROOT=y
|
||||
# CONFIG_CKSUM is not set
|
||||
# CONFIG_COMM is not set
|
||||
CONFIG_CP=y
|
||||
# CONFIG_FEATURE_CP_LONG_OPTIONS is not set
|
||||
CONFIG_CUT=y
|
||||
CONFIG_DATE=y
|
||||
# CONFIG_FEATURE_DATE_ISOFMT is not set
|
||||
CONFIG_FEATURE_DATE_COMPAT=y
|
||||
CONFIG_DD=y
|
||||
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
|
||||
# CONFIG_FEATURE_DD_THIRD_STATUS_LINE is not set
|
||||
# CONFIG_FEATURE_DD_IBS_OBS is not set
|
||||
CONFIG_DF=y
|
||||
# CONFIG_FEATURE_DF_FANCY is not set
|
||||
CONFIG_DIRNAME=y
|
||||
# CONFIG_DOS2UNIX is not set
|
||||
# CONFIG_UNIX2DOS is not set
|
||||
CONFIG_DU=y
|
||||
CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y
|
||||
CONFIG_ECHO=y
|
||||
CONFIG_FEATURE_FANCY_ECHO=y
|
||||
CONFIG_ENV=y
|
||||
CONFIG_FEATURE_ENV_LONG_OPTIONS=y
|
||||
# CONFIG_EXPAND is not set
|
||||
# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set
|
||||
CONFIG_EXPR=y
|
||||
# CONFIG_EXPR_MATH_SUPPORT_64 is not set
|
||||
CONFIG_FALSE=y
|
||||
# CONFIG_FOLD is not set
|
||||
# CONFIG_FSYNC is not set
|
||||
CONFIG_HEAD=y
|
||||
# CONFIG_FEATURE_FANCY_HEAD is not set
|
||||
# CONFIG_HOSTID is not set
|
||||
CONFIG_ID=y
|
||||
# CONFIG_INSTALL is not set
|
||||
# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set
|
||||
# CONFIG_LENGTH is not set
|
||||
CONFIG_LN=y
|
||||
CONFIG_LOGNAME=y
|
||||
CONFIG_LS=y
|
||||
CONFIG_FEATURE_LS_FILETYPES=y
|
||||
CONFIG_FEATURE_LS_FOLLOWLINKS=y
|
||||
CONFIG_FEATURE_LS_RECURSIVE=y
|
||||
CONFIG_FEATURE_LS_SORTFILES=y
|
||||
CONFIG_FEATURE_LS_TIMESTAMPS=y
|
||||
CONFIG_FEATURE_LS_USERNAME=y
|
||||
CONFIG_FEATURE_LS_COLOR=y
|
||||
# CONFIG_FEATURE_LS_COLOR_IS_DEFAULT is not set
|
||||
CONFIG_MD5SUM=y
|
||||
CONFIG_MKDIR=y
|
||||
CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y
|
||||
CONFIG_MKFIFO=y
|
||||
CONFIG_MKNOD=y
|
||||
CONFIG_MV=y
|
||||
# CONFIG_FEATURE_MV_LONG_OPTIONS is not set
|
||||
# CONFIG_NICE is not set
|
||||
CONFIG_NOHUP=y
|
||||
CONFIG_OD=y
|
||||
# CONFIG_PRINTENV is not set
|
||||
CONFIG_PRINTF=y
|
||||
CONFIG_PWD=y
|
||||
CONFIG_READLINK=y
|
||||
CONFIG_FEATURE_READLINK_FOLLOW=y
|
||||
CONFIG_REALPATH=y
|
||||
CONFIG_RM=y
|
||||
CONFIG_RMDIR=y
|
||||
# CONFIG_FEATURE_RMDIR_LONG_OPTIONS is not set
|
||||
CONFIG_SEQ=y
|
||||
# CONFIG_SHA1SUM is not set
|
||||
# CONFIG_SHA256SUM is not set
|
||||
# CONFIG_SHA512SUM is not set
|
||||
CONFIG_SLEEP=y
|
||||
CONFIG_FEATURE_FANCY_SLEEP=y
|
||||
# CONFIG_FEATURE_FLOAT_SLEEP is not set
|
||||
CONFIG_SORT=y
|
||||
CONFIG_FEATURE_SORT_BIG=y
|
||||
# CONFIG_SPLIT is not set
|
||||
# CONFIG_FEATURE_SPLIT_FANCY is not set
|
||||
# CONFIG_STAT is not set
|
||||
# CONFIG_FEATURE_STAT_FORMAT is not set
|
||||
CONFIG_STTY=y
|
||||
# CONFIG_SUM is not set
|
||||
CONFIG_SYNC=y
|
||||
# CONFIG_TAC is not set
|
||||
CONFIG_TAIL=y
|
||||
CONFIG_FEATURE_FANCY_TAIL=y
|
||||
CONFIG_TEE=y
|
||||
# CONFIG_FEATURE_TEE_USE_BLOCK_IO is not set
|
||||
CONFIG_TEST=y
|
||||
# CONFIG_FEATURE_TEST_64 is not set
|
||||
CONFIG_TOUCH=y
|
||||
CONFIG_TR=y
|
||||
CONFIG_FEATURE_TR_CLASSES=y
|
||||
# CONFIG_FEATURE_TR_EQUIV is not set
|
||||
CONFIG_TRUE=y
|
||||
CONFIG_TTY=y
|
||||
CONFIG_UNAME=y
|
||||
# CONFIG_UNEXPAND is not set
|
||||
# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set
|
||||
CONFIG_UNIQ=y
|
||||
CONFIG_USLEEP=y
|
||||
# CONFIG_UUDECODE is not set
|
||||
# CONFIG_UUENCODE is not set
|
||||
CONFIG_WC=y
|
||||
# CONFIG_FEATURE_WC_LARGE is not set
|
||||
CONFIG_WHO=y
|
||||
CONFIG_WHOAMI=y
|
||||
CONFIG_YES=y
|
||||
|
||||
#
|
||||
# Common options for cp and mv
|
||||
#
|
||||
# CONFIG_FEATURE_PRESERVE_HARDLINKS is not set
|
||||
|
||||
#
|
||||
# Common options for ls, more and telnet
|
||||
#
|
||||
CONFIG_FEATURE_AUTOWIDTH=y
|
||||
|
||||
#
|
||||
# Common options for df, du, ls
|
||||
#
|
||||
CONFIG_FEATURE_HUMAN_READABLE=y
|
||||
|
||||
#
|
||||
# Common options for md5sum, sha1sum, sha256sum, sha512sum
|
||||
#
|
||||
CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
|
||||
|
||||
#
|
||||
# Console Utilities
|
||||
#
|
||||
CONFIG_CHVT=y
|
||||
CONFIG_CLEAR=y
|
||||
CONFIG_DEALLOCVT=y
|
||||
CONFIG_DUMPKMAP=y
|
||||
# CONFIG_KBD_MODE is not set
|
||||
CONFIG_LOADFONT=y
|
||||
CONFIG_LOADKMAP=y
|
||||
CONFIG_OPENVT=y
|
||||
CONFIG_RESET=y
|
||||
# CONFIG_RESIZE is not set
|
||||
# CONFIG_FEATURE_RESIZE_PRINT is not set
|
||||
CONFIG_SETCONSOLE=y
|
||||
# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set
|
||||
# CONFIG_SETFONT is not set
|
||||
# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set
|
||||
CONFIG_DEFAULT_SETFONT_DIR=""
|
||||
# CONFIG_SETKEYCODES is not set
|
||||
# CONFIG_SETLOGCONS is not set
|
||||
# CONFIG_SHOWKEY is not set
|
||||
|
||||
#
|
||||
# Debian Utilities
|
||||
#
|
||||
CONFIG_MKTEMP=y
|
||||
# CONFIG_PIPE_PROGRESS is not set
|
||||
CONFIG_RUN_PARTS=y
|
||||
CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y
|
||||
# CONFIG_FEATURE_RUN_PARTS_FANCY is not set
|
||||
CONFIG_START_STOP_DAEMON=y
|
||||
CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y
|
||||
CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y
|
||||
CONFIG_WHICH=y
|
||||
|
||||
#
|
||||
# Editors
|
||||
#
|
||||
CONFIG_AWK=y
|
||||
# CONFIG_FEATURE_AWK_LIBM is not set
|
||||
CONFIG_CMP=y
|
||||
CONFIG_DIFF=y
|
||||
# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
|
||||
CONFIG_FEATURE_DIFF_DIR=y
|
||||
# CONFIG_ED is not set
|
||||
CONFIG_PATCH=y
|
||||
CONFIG_SED=y
|
||||
CONFIG_VI=y
|
||||
CONFIG_FEATURE_VI_MAX_LEN=1024
|
||||
CONFIG_FEATURE_VI_8BIT=y
|
||||
CONFIG_FEATURE_VI_COLON=y
|
||||
CONFIG_FEATURE_VI_YANKMARK=y
|
||||
CONFIG_FEATURE_VI_SEARCH=y
|
||||
CONFIG_FEATURE_VI_USE_SIGNALS=y
|
||||
# CONFIG_FEATURE_VI_DOT_CMD is not set
|
||||
# CONFIG_FEATURE_VI_READONLY is not set
|
||||
# CONFIG_FEATURE_VI_SETOPTS is not set
|
||||
# CONFIG_FEATURE_VI_SET is not set
|
||||
CONFIG_FEATURE_VI_WIN_RESIZE=y
|
||||
CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y
|
||||
CONFIG_FEATURE_ALLOW_EXEC=y
|
||||
|
||||
#
|
||||
# Finding Utilities
|
||||
#
|
||||
CONFIG_FIND=y
|
||||
CONFIG_FEATURE_FIND_PRINT0=y
|
||||
CONFIG_FEATURE_FIND_MTIME=y
|
||||
CONFIG_FEATURE_FIND_MMIN=y
|
||||
CONFIG_FEATURE_FIND_PERM=y
|
||||
CONFIG_FEATURE_FIND_TYPE=y
|
||||
CONFIG_FEATURE_FIND_XDEV=y
|
||||
CONFIG_FEATURE_FIND_MAXDEPTH=y
|
||||
CONFIG_FEATURE_FIND_NEWER=y
|
||||
# CONFIG_FEATURE_FIND_INUM is not set
|
||||
CONFIG_FEATURE_FIND_EXEC=y
|
||||
CONFIG_FEATURE_FIND_USER=y
|
||||
CONFIG_FEATURE_FIND_GROUP=y
|
||||
CONFIG_FEATURE_FIND_NOT=y
|
||||
CONFIG_FEATURE_FIND_DEPTH=y
|
||||
CONFIG_FEATURE_FIND_PAREN=y
|
||||
CONFIG_FEATURE_FIND_SIZE=y
|
||||
CONFIG_FEATURE_FIND_PRUNE=y
|
||||
# CONFIG_FEATURE_FIND_DELETE is not set
|
||||
CONFIG_FEATURE_FIND_PATH=y
|
||||
CONFIG_FEATURE_FIND_REGEX=y
|
||||
# CONFIG_FEATURE_FIND_CONTEXT is not set
|
||||
# CONFIG_FEATURE_FIND_LINKS is not set
|
||||
CONFIG_GREP=y
|
||||
CONFIG_FEATURE_GREP_EGREP_ALIAS=y
|
||||
CONFIG_FEATURE_GREP_FGREP_ALIAS=y
|
||||
CONFIG_FEATURE_GREP_CONTEXT=y
|
||||
CONFIG_XARGS=y
|
||||
# CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION is not set
|
||||
# CONFIG_FEATURE_XARGS_SUPPORT_QUOTES is not set
|
||||
# CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT is not set
|
||||
# CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM is not set
|
||||
|
||||
#
|
||||
# Init Utilities
|
||||
#
|
||||
# CONFIG_INIT is not set
|
||||
# CONFIG_FEATURE_USE_INITTAB is not set
|
||||
# CONFIG_FEATURE_KILL_REMOVED is not set
|
||||
CONFIG_FEATURE_KILL_DELAY=0
|
||||
# CONFIG_FEATURE_INIT_SCTTY is not set
|
||||
# CONFIG_FEATURE_INIT_SYSLOG is not set
|
||||
# CONFIG_FEATURE_EXTRA_QUIET is not set
|
||||
# CONFIG_FEATURE_INIT_COREDUMPS is not set
|
||||
# CONFIG_FEATURE_INITRD is not set
|
||||
CONFIG_HALT=y
|
||||
# CONFIG_FEATURE_CALL_TELINIT is not set
|
||||
CONFIG_TELINIT_PATH=""
|
||||
# CONFIG_MESG is not set
|
||||
|
||||
#
|
||||
# Login/Password Management Utilities
|
||||
#
|
||||
# CONFIG_FEATURE_SHADOWPASSWDS is not set
|
||||
# CONFIG_USE_BB_PWD_GRP is not set
|
||||
# CONFIG_USE_BB_SHADOW is not set
|
||||
CONFIG_USE_BB_CRYPT=y
|
||||
# CONFIG_USE_BB_CRYPT_SHA is not set
|
||||
# CONFIG_ADDGROUP is not set
|
||||
# CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set
|
||||
# CONFIG_FEATURE_ADDUSER_TO_GROUP is not set
|
||||
# CONFIG_DELGROUP is not set
|
||||
# CONFIG_FEATURE_DEL_USER_FROM_GROUP is not set
|
||||
# CONFIG_FEATURE_CHECK_NAMES is not set
|
||||
# CONFIG_ADDUSER is not set
|
||||
# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set
|
||||
CONFIG_FIRST_SYSTEM_ID=0
|
||||
CONFIG_LAST_SYSTEM_ID=0
|
||||
# CONFIG_DELUSER is not set
|
||||
# CONFIG_GETTY is not set
|
||||
CONFIG_FEATURE_UTMP=y
|
||||
# CONFIG_FEATURE_WTMP is not set
|
||||
# CONFIG_LOGIN is not set
|
||||
# CONFIG_PAM is not set
|
||||
# CONFIG_LOGIN_SCRIPTS is not set
|
||||
# CONFIG_FEATURE_NOLOGIN is not set
|
||||
# CONFIG_FEATURE_SECURETTY is not set
|
||||
# CONFIG_PASSWD is not set
|
||||
# CONFIG_FEATURE_PASSWD_WEAK_CHECK is not set
|
||||
# CONFIG_CRYPTPW is not set
|
||||
# CONFIG_CHPASSWD is not set
|
||||
# CONFIG_SU is not set
|
||||
# CONFIG_FEATURE_SU_SYSLOG is not set
|
||||
# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set
|
||||
# CONFIG_SULOGIN is not set
|
||||
# CONFIG_VLOCK is not set
|
||||
|
||||
#
|
||||
# Linux Ext2 FS Progs
|
||||
#
|
||||
CONFIG_CHATTR=y
|
||||
CONFIG_FSCK=y
|
||||
# CONFIG_LSATTR is not set
|
||||
|
||||
#
|
||||
# Linux Module Utilities
|
||||
#
|
||||
# CONFIG_MODPROBE_SMALL is not set
|
||||
# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set
|
||||
# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set
|
||||
CONFIG_INSMOD=y
|
||||
CONFIG_RMMOD=y
|
||||
CONFIG_LSMOD=y
|
||||
# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set
|
||||
CONFIG_MODPROBE=y
|
||||
CONFIG_FEATURE_MODPROBE_BLACKLIST=y
|
||||
# CONFIG_DEPMOD is not set
|
||||
|
||||
#
|
||||
# Options common to multiple modutils
|
||||
#
|
||||
# CONFIG_FEATURE_2_4_MODULES is not set
|
||||
# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
|
||||
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
|
||||
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
|
||||
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
|
||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||
CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
|
||||
CONFIG_FEATURE_MODUTILS_ALIAS=y
|
||||
CONFIG_FEATURE_MODUTILS_SYMBOLS=y
|
||||
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||
|
||||
#
|
||||
# Linux System Utilities
|
||||
#
|
||||
# CONFIG_ACPID is not set
|
||||
# CONFIG_FEATURE_ACPID_COMPAT is not set
|
||||
# CONFIG_BLKID is not set
|
||||
CONFIG_DMESG=y
|
||||
CONFIG_FEATURE_DMESG_PRETTY=y
|
||||
CONFIG_FBSET=y
|
||||
CONFIG_FEATURE_FBSET_FANCY=y
|
||||
CONFIG_FEATURE_FBSET_READMODE=y
|
||||
# CONFIG_FDFLUSH is not set
|
||||
# CONFIG_FDFORMAT is not set
|
||||
CONFIG_FDISK=y
|
||||
CONFIG_FDISK_SUPPORT_LARGE_DISKS=y
|
||||
CONFIG_FEATURE_FDISK_WRITABLE=y
|
||||
# CONFIG_FEATURE_AIX_LABEL is not set
|
||||
# CONFIG_FEATURE_SGI_LABEL is not set
|
||||
# CONFIG_FEATURE_SUN_LABEL is not set
|
||||
# CONFIG_FEATURE_OSF_LABEL is not set
|
||||
# CONFIG_FEATURE_FDISK_ADVANCED is not set
|
||||
# CONFIG_FINDFS is not set
|
||||
# CONFIG_FREERAMDISK is not set
|
||||
CONFIG_FSCK_MINIX=y
|
||||
# CONFIG_MKFS_EXT2 is not set
|
||||
CONFIG_MKFS_MINIX=y
|
||||
|
||||
#
|
||||
# Minix filesystem support
|
||||
#
|
||||
CONFIG_FEATURE_MINIX2=y
|
||||
# CONFIG_MKFS_REISER is not set
|
||||
# CONFIG_MKFS_VFAT is not set
|
||||
# CONFIG_GETOPT is not set
|
||||
# CONFIG_FEATURE_GETOPT_LONG is not set
|
||||
CONFIG_HEXDUMP=y
|
||||
# CONFIG_FEATURE_HEXDUMP_REVERSE is not set
|
||||
# CONFIG_HD is not set
|
||||
CONFIG_HWCLOCK=y
|
||||
CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y
|
||||
CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
|
||||
# CONFIG_IPCRM is not set
|
||||
# CONFIG_IPCS is not set
|
||||
CONFIG_LOSETUP=y
|
||||
# CONFIG_LSPCI is not set
|
||||
# CONFIG_LSUSB is not set
|
||||
# CONFIG_MDEV is not set
|
||||
# CONFIG_FEATURE_MDEV_CONF is not set
|
||||
# CONFIG_FEATURE_MDEV_RENAME is not set
|
||||
# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set
|
||||
# CONFIG_FEATURE_MDEV_EXEC is not set
|
||||
# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set
|
||||
CONFIG_MKSWAP=y
|
||||
# CONFIG_FEATURE_MKSWAP_UUID is not set
|
||||
CONFIG_MORE=y
|
||||
CONFIG_FEATURE_USE_TERMIOS=y
|
||||
# CONFIG_VOLUMEID is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_EXT is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_BTRFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_REISERFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_FAT is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_HFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_JFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_XFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_NTFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_ISO9660 is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_UDF is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_LUKS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_LINUXSWAP is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_CRAMFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_ROMFS is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_SYSV is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set
|
||||
# CONFIG_FEATURE_VOLUMEID_LINUXRAID is not set
|
||||
CONFIG_MOUNT=y
|
||||
# CONFIG_FEATURE_MOUNT_FAKE is not set
|
||||
# CONFIG_FEATURE_MOUNT_VERBOSE is not set
|
||||
# CONFIG_FEATURE_MOUNT_HELPERS is not set
|
||||
# CONFIG_FEATURE_MOUNT_LABEL is not set
|
||||
CONFIG_FEATURE_MOUNT_NFS=y
|
||||
# CONFIG_FEATURE_MOUNT_CIFS is not set
|
||||
CONFIG_FEATURE_MOUNT_FLAGS=y
|
||||
CONFIG_FEATURE_MOUNT_FSTAB=y
|
||||
CONFIG_PIVOT_ROOT=y
|
||||
CONFIG_RDATE=y
|
||||
# CONFIG_RDEV is not set
|
||||
# CONFIG_READPROFILE is not set
|
||||
# CONFIG_RTCWAKE is not set
|
||||
# CONFIG_SCRIPT is not set
|
||||
# CONFIG_SCRIPTREPLAY is not set
|
||||
# CONFIG_SETARCH is not set
|
||||
CONFIG_SWAPONOFF=y
|
||||
# CONFIG_FEATURE_SWAPON_PRI is not set
|
||||
CONFIG_SWITCH_ROOT=y
|
||||
CONFIG_UMOUNT=y
|
||||
CONFIG_FEATURE_UMOUNT_ALL=y
|
||||
|
||||
#
|
||||
# Common options for mount/umount
|
||||
#
|
||||
CONFIG_FEATURE_MOUNT_LOOP=y
|
||||
# CONFIG_FEATURE_MTAB_SUPPORT is not set
|
||||
|
||||
#
|
||||
# Miscellaneous Utilities
|
||||
#
|
||||
# CONFIG_ADJTIMEX is not set
|
||||
# CONFIG_BBCONFIG is not set
|
||||
# CONFIG_BEEP is not set
|
||||
CONFIG_FEATURE_BEEP_FREQ=0
|
||||
CONFIG_FEATURE_BEEP_LENGTH_MS=0
|
||||
# CONFIG_CHAT is not set
|
||||
# CONFIG_FEATURE_CHAT_NOFAIL is not set
|
||||
# CONFIG_FEATURE_CHAT_TTY_HIFI is not set
|
||||
# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set
|
||||
# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set
|
||||
# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set
|
||||
# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set
|
||||
# CONFIG_FEATURE_CHAT_CLR_ABORT is not set
|
||||
# CONFIG_CHRT is not set
|
||||
# CONFIG_CROND is not set
|
||||
# CONFIG_FEATURE_CROND_D is not set
|
||||
# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set
|
||||
CONFIG_FEATURE_CROND_DIR=""
|
||||
# CONFIG_CRONTAB is not set
|
||||
CONFIG_DC=y
|
||||
# CONFIG_FEATURE_DC_LIBM is not set
|
||||
# CONFIG_DEVFSD is not set
|
||||
# CONFIG_DEVFSD_MODLOAD is not set
|
||||
# CONFIG_DEVFSD_FG_NP is not set
|
||||
# CONFIG_DEVFSD_VERBOSE is not set
|
||||
# CONFIG_FEATURE_DEVFS is not set
|
||||
# CONFIG_DEVMEM is not set
|
||||
# CONFIG_EJECT is not set
|
||||
# CONFIG_FEATURE_EJECT_SCSI is not set
|
||||
# CONFIG_FBSPLASH is not set
|
||||
# CONFIG_FLASHCP is not set
|
||||
# CONFIG_FLASH_LOCK is not set
|
||||
# CONFIG_FLASH_UNLOCK is not set
|
||||
# CONFIG_FLASH_ERASEALL is not set
|
||||
# CONFIG_IONICE is not set
|
||||
# CONFIG_INOTIFYD is not set
|
||||
# CONFIG_LAST is not set
|
||||
# CONFIG_FEATURE_LAST_SMALL is not set
|
||||
# CONFIG_FEATURE_LAST_FANCY is not set
|
||||
CONFIG_LESS=y
|
||||
CONFIG_FEATURE_LESS_MAXLINES=9999999
|
||||
CONFIG_FEATURE_LESS_BRACKETS=y
|
||||
CONFIG_FEATURE_LESS_FLAGS=y
|
||||
# CONFIG_FEATURE_LESS_MARKS is not set
|
||||
# CONFIG_FEATURE_LESS_REGEXP is not set
|
||||
# CONFIG_FEATURE_LESS_WINCH is not set
|
||||
# CONFIG_FEATURE_LESS_DASHCMD is not set
|
||||
# CONFIG_FEATURE_LESS_LINENUMS is not set
|
||||
# CONFIG_HDPARM is not set
|
||||
# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set
|
||||
# CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF is not set
|
||||
# CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF is not set
|
||||
# CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET is not set
|
||||
# CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF is not set
|
||||
# CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA is not set
|
||||
# CONFIG_MAKEDEVS is not set
|
||||
# CONFIG_FEATURE_MAKEDEVS_LEAF is not set
|
||||
# CONFIG_FEATURE_MAKEDEVS_TABLE is not set
|
||||
# CONFIG_MAN is not set
|
||||
CONFIG_MICROCOM=y
|
||||
# CONFIG_MOUNTPOINT is not set
|
||||
# CONFIG_MT is not set
|
||||
# CONFIG_RAIDAUTORUN is not set
|
||||
# CONFIG_READAHEAD is not set
|
||||
# CONFIG_RUNLEVEL is not set
|
||||
# CONFIG_RX is not set
|
||||
# CONFIG_SETSID is not set
|
||||
CONFIG_STRINGS=y
|
||||
# CONFIG_TASKSET is not set
|
||||
# CONFIG_FEATURE_TASKSET_FANCY is not set
|
||||
CONFIG_TIME=y
|
||||
# CONFIG_TIMEOUT is not set
|
||||
# CONFIG_TTYSIZE is not set
|
||||
# CONFIG_VOLNAME is not set
|
||||
# CONFIG_WALL is not set
|
||||
# CONFIG_WATCHDOG is not set
|
||||
|
||||
#
|
||||
# Networking Utilities
|
||||
#
|
||||
CONFIG_FEATURE_IPV6=y
|
||||
# CONFIG_FEATURE_UNIX_LOCAL is not set
|
||||
CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y
|
||||
# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set
|
||||
# CONFIG_ARP is not set
|
||||
# CONFIG_ARPING is not set
|
||||
# CONFIG_BRCTL is not set
|
||||
# CONFIG_FEATURE_BRCTL_FANCY is not set
|
||||
# CONFIG_FEATURE_BRCTL_SHOW is not set
|
||||
# CONFIG_DNSD is not set
|
||||
# CONFIG_ETHER_WAKE is not set
|
||||
# CONFIG_FAKEIDENTD is not set
|
||||
# CONFIG_FTPD is not set
|
||||
# CONFIG_FEATURE_FTP_WRITE is not set
|
||||
# CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST is not set
|
||||
# CONFIG_FTPGET is not set
|
||||
# CONFIG_FTPPUT is not set
|
||||
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
|
||||
CONFIG_HOSTNAME=y
|
||||
# CONFIG_HTTPD is not set
|
||||
# CONFIG_FEATURE_HTTPD_RANGES is not set
|
||||
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
|
||||
# CONFIG_FEATURE_HTTPD_SETUID is not set
|
||||
# CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set
|
||||
# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set
|
||||
# CONFIG_FEATURE_HTTPD_CGI is not set
|
||||
# CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR is not set
|
||||
# CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV is not set
|
||||
# CONFIG_FEATURE_HTTPD_ENCODE_URL_STR is not set
|
||||
# CONFIG_FEATURE_HTTPD_ERROR_PAGES is not set
|
||||
# CONFIG_FEATURE_HTTPD_PROXY is not set
|
||||
CONFIG_IFCONFIG=y
|
||||
CONFIG_FEATURE_IFCONFIG_STATUS=y
|
||||
# CONFIG_FEATURE_IFCONFIG_SLIP is not set
|
||||
# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set
|
||||
CONFIG_FEATURE_IFCONFIG_HW=y
|
||||
# CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS is not set
|
||||
# CONFIG_IFENSLAVE is not set
|
||||
CONFIG_IFPLUGD=y
|
||||
CONFIG_IFUPDOWN=y
|
||||
CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate"
|
||||
# CONFIG_FEATURE_IFUPDOWN_IP is not set
|
||||
# CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN is not set
|
||||
CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN=y
|
||||
CONFIG_FEATURE_IFUPDOWN_IPV4=y
|
||||
CONFIG_FEATURE_IFUPDOWN_IPV6=y
|
||||
CONFIG_FEATURE_IFUPDOWN_MAPPING=y
|
||||
# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set
|
||||
# CONFIG_INETD is not set
|
||||
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO is not set
|
||||
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD is not set
|
||||
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME is not set
|
||||
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME is not set
|
||||
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN is not set
|
||||
# CONFIG_FEATURE_INETD_RPC is not set
|
||||
CONFIG_IP=y
|
||||
CONFIG_FEATURE_IP_ADDRESS=y
|
||||
CONFIG_FEATURE_IP_LINK=y
|
||||
CONFIG_FEATURE_IP_ROUTE=y
|
||||
CONFIG_FEATURE_IP_TUNNEL=y
|
||||
# CONFIG_FEATURE_IP_RULE is not set
|
||||
# CONFIG_FEATURE_IP_SHORT_FORMS is not set
|
||||
# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set
|
||||
# CONFIG_IPADDR is not set
|
||||
# CONFIG_IPLINK is not set
|
||||
# CONFIG_IPROUTE is not set
|
||||
# CONFIG_IPTUNNEL is not set
|
||||
# CONFIG_IPRULE is not set
|
||||
# CONFIG_IPCALC is not set
|
||||
# CONFIG_FEATURE_IPCALC_FANCY is not set
|
||||
# CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set
|
||||
# CONFIG_NAMEIF is not set
|
||||
# CONFIG_FEATURE_NAMEIF_EXTENDED is not set
|
||||
CONFIG_NC=y
|
||||
# CONFIG_NC_SERVER is not set
|
||||
# CONFIG_NC_EXTRA is not set
|
||||
CONFIG_NETSTAT=y
|
||||
# CONFIG_FEATURE_NETSTAT_WIDE is not set
|
||||
# CONFIG_FEATURE_NETSTAT_PRG is not set
|
||||
CONFIG_NSLOOKUP=y
|
||||
# CONFIG_NTPD is not set
|
||||
# CONFIG_FEATURE_NTPD_SERVER is not set
|
||||
CONFIG_PING=y
|
||||
CONFIG_PING6=y
|
||||
CONFIG_FEATURE_FANCY_PING=y
|
||||
# CONFIG_PSCAN is not set
|
||||
CONFIG_ROUTE=y
|
||||
# CONFIG_SLATTACH is not set
|
||||
CONFIG_TELNET=y
|
||||
# CONFIG_FEATURE_TELNET_TTYPE is not set
|
||||
CONFIG_FEATURE_TELNET_AUTOLOGIN=y
|
||||
# CONFIG_TELNETD is not set
|
||||
# CONFIG_FEATURE_TELNETD_STANDALONE is not set
|
||||
# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set
|
||||
CONFIG_TFTP=y
|
||||
# CONFIG_TFTPD is not set
|
||||
CONFIG_FEATURE_TFTP_GET=y
|
||||
CONFIG_FEATURE_TFTP_PUT=y
|
||||
# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set
|
||||
# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set
|
||||
# CONFIG_TFTP_DEBUG is not set
|
||||
CONFIG_TRACEROUTE=y
|
||||
# CONFIG_TRACEROUTE6 is not set
|
||||
# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set
|
||||
# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set
|
||||
# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set
|
||||
CONFIG_UDHCPD=y
|
||||
# CONFIG_DHCPRELAY is not set
|
||||
CONFIG_DUMPLEASES=y
|
||||
# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set
|
||||
CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
|
||||
CONFIG_UDHCPC=y
|
||||
CONFIG_FEATURE_UDHCPC_ARPING=y
|
||||
# CONFIG_FEATURE_UDHCP_PORT is not set
|
||||
CONFIG_UDHCP_DEBUG=0
|
||||
# CONFIG_FEATURE_UDHCP_RFC3397 is not set
|
||||
CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
|
||||
CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
|
||||
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n"
|
||||
# CONFIG_VCONFIG is not set
|
||||
CONFIG_WGET=y
|
||||
CONFIG_FEATURE_WGET_STATUSBAR=y
|
||||
CONFIG_FEATURE_WGET_AUTHENTICATION=y
|
||||
CONFIG_FEATURE_WGET_LONG_OPTIONS=y
|
||||
# CONFIG_ZCIP is not set
|
||||
# CONFIG_TCPSVD is not set
|
||||
# CONFIG_TUNCTL is not set
|
||||
# CONFIG_FEATURE_TUNCTL_UG is not set
|
||||
# CONFIG_UDPSVD is not set
|
||||
|
||||
#
|
||||
# Print Utilities
|
||||
#
|
||||
# CONFIG_LPD is not set
|
||||
# CONFIG_LPR is not set
|
||||
# CONFIG_LPQ is not set
|
||||
|
||||
#
|
||||
# Mail Utilities
|
||||
#
|
||||
# CONFIG_MAKEMIME is not set
|
||||
CONFIG_FEATURE_MIME_CHARSET=""
|
||||
# CONFIG_POPMAILDIR is not set
|
||||
# CONFIG_FEATURE_POPMAILDIR_DELIVERY is not set
|
||||
# CONFIG_REFORMIME is not set
|
||||
# CONFIG_FEATURE_REFORMIME_COMPAT is not set
|
||||
# CONFIG_SENDMAIL is not set
|
||||
|
||||
#
|
||||
# Process Utilities
|
||||
#
|
||||
CONFIG_FREE=y
|
||||
CONFIG_FUSER=y
|
||||
CONFIG_KILL=y
|
||||
CONFIG_KILLALL=y
|
||||
# CONFIG_KILLALL5 is not set
|
||||
# CONFIG_NMETER is not set
|
||||
# CONFIG_PGREP is not set
|
||||
CONFIG_PIDOF=y
|
||||
# CONFIG_FEATURE_PIDOF_SINGLE is not set
|
||||
# CONFIG_FEATURE_PIDOF_OMIT is not set
|
||||
# CONFIG_PKILL is not set
|
||||
CONFIG_PS=y
|
||||
CONFIG_FEATURE_PS_WIDE=y
|
||||
# CONFIG_FEATURE_PS_TIME is not set
|
||||
# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set
|
||||
# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set
|
||||
CONFIG_RENICE=y
|
||||
CONFIG_BB_SYSCTL=y
|
||||
CONFIG_TOP=y
|
||||
CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y
|
||||
CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y
|
||||
# CONFIG_FEATURE_TOP_SMP_CPU is not set
|
||||
# CONFIG_FEATURE_TOP_DECIMALS is not set
|
||||
# CONFIG_FEATURE_TOP_SMP_PROCESS is not set
|
||||
# CONFIG_FEATURE_TOPMEM is not set
|
||||
# CONFIG_FEATURE_SHOW_THREADS is not set
|
||||
CONFIG_UPTIME=y
|
||||
CONFIG_WATCH=y
|
||||
|
||||
#
|
||||
# Runit Utilities
|
||||
#
|
||||
# CONFIG_RUNSV is not set
|
||||
# CONFIG_RUNSVDIR is not set
|
||||
# CONFIG_FEATURE_RUNSVDIR_LOG is not set
|
||||
# CONFIG_SV is not set
|
||||
CONFIG_SV_DEFAULT_SERVICE_DIR=""
|
||||
# CONFIG_SVLOGD is not set
|
||||
# CONFIG_CHPST is not set
|
||||
# CONFIG_SETUIDGID is not set
|
||||
# CONFIG_ENVUIDGID is not set
|
||||
# CONFIG_ENVDIR is not set
|
||||
# CONFIG_SOFTLIMIT is not set
|
||||
# CONFIG_CHCON is not set
|
||||
# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set
|
||||
# CONFIG_GETENFORCE is not set
|
||||
# CONFIG_GETSEBOOL is not set
|
||||
# CONFIG_LOAD_POLICY is not set
|
||||
# CONFIG_MATCHPATHCON is not set
|
||||
# CONFIG_RESTORECON is not set
|
||||
# CONFIG_RUNCON is not set
|
||||
# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set
|
||||
# CONFIG_SELINUXENABLED is not set
|
||||
# CONFIG_SETENFORCE is not set
|
||||
# CONFIG_SETFILES is not set
|
||||
# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set
|
||||
# CONFIG_SETSEBOOL is not set
|
||||
# CONFIG_SESTATUS is not set
|
||||
|
||||
#
|
||||
# Shells
|
||||
#
|
||||
CONFIG_FEATURE_SH_IS_ASH=y
|
||||
# CONFIG_FEATURE_SH_IS_HUSH is not set
|
||||
# CONFIG_FEATURE_SH_IS_NONE is not set
|
||||
CONFIG_ASH=y
|
||||
CONFIG_ASH_BASH_COMPAT=y
|
||||
CONFIG_ASH_JOB_CONTROL=y
|
||||
CONFIG_ASH_ALIAS=y
|
||||
CONFIG_ASH_GETOPTS=y
|
||||
CONFIG_ASH_BUILTIN_ECHO=y
|
||||
CONFIG_ASH_BUILTIN_PRINTF=y
|
||||
CONFIG_ASH_BUILTIN_TEST=y
|
||||
# CONFIG_ASH_CMDCMD is not set
|
||||
# CONFIG_ASH_MAIL is not set
|
||||
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
|
||||
# CONFIG_ASH_RANDOM_SUPPORT is not set
|
||||
CONFIG_ASH_EXPAND_PRMT=y
|
||||
# CONFIG_HUSH is not set
|
||||
# CONFIG_HUSH_BASH_COMPAT is not set
|
||||
# CONFIG_HUSH_HELP is not set
|
||||
# CONFIG_HUSH_INTERACTIVE is not set
|
||||
# CONFIG_HUSH_JOB is not set
|
||||
# CONFIG_HUSH_TICK is not set
|
||||
# CONFIG_HUSH_IF is not set
|
||||
# CONFIG_HUSH_LOOPS is not set
|
||||
# CONFIG_HUSH_CASE is not set
|
||||
# CONFIG_HUSH_FUNCTIONS is not set
|
||||
# CONFIG_HUSH_LOCAL is not set
|
||||
# CONFIG_HUSH_EXPORT_N is not set
|
||||
# CONFIG_HUSH_RANDOM_SUPPORT is not set
|
||||
# CONFIG_LASH is not set
|
||||
# CONFIG_MSH is not set
|
||||
CONFIG_SH_MATH_SUPPORT=y
|
||||
# CONFIG_SH_MATH_SUPPORT_64 is not set
|
||||
CONFIG_FEATURE_SH_EXTRA_QUIET=y
|
||||
# CONFIG_FEATURE_SH_STANDALONE is not set
|
||||
# CONFIG_FEATURE_SH_NOFORK is not set
|
||||
# CONFIG_CTTYHACK is not set
|
||||
|
||||
#
|
||||
# System Logging Utilities
|
||||
#
|
||||
CONFIG_SYSLOGD=y
|
||||
CONFIG_FEATURE_ROTATE_LOGFILE=y
|
||||
CONFIG_FEATURE_REMOTE_LOG=y
|
||||
# CONFIG_FEATURE_SYSLOGD_DUP is not set
|
||||
CONFIG_FEATURE_IPC_SYSLOG=y
|
||||
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16
|
||||
CONFIG_LOGREAD=y
|
||||
CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y
|
||||
CONFIG_KLOGD=y
|
||||
CONFIG_LOGGER=y
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $2 in
|
||||
up)
|
||||
echo "UP"
|
||||
/sbin/ifup $1
|
||||
;;
|
||||
down)
|
||||
echo "DOWN"
|
||||
/sbin/ifdown $1
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,8 @@
|
|||
require sysmocom-image.inc
|
||||
|
||||
# This variant of the image will run osmo-bts and osmo-bsc
|
||||
activate_bsc() {
|
||||
echo "NO_START=0" > ${IMAGE_ROOTFS}/etc/default/osmo-bsc
|
||||
}
|
||||
|
||||
IMAGE_PREPROCESS_COMMAND += "activate_bsc; "
|
|
@ -0,0 +1,10 @@
|
|||
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} task-osmocom task-sysmocom"
|
||||
IMAGE_LINGUAS = " "
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit core-image
|
||||
|
||||
IMAGE_ROOTFS_SIZE = "8192"
|
||||
|
||||
# remove not needed ipkg informations
|
||||
ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
|
|
@ -0,0 +1 @@
|
|||
require sysmocom-image.inc
|
|
@ -0,0 +1,19 @@
|
|||
DEPENDS = "${MACHINE_EXTRA_RDEPENDS}"
|
||||
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${ROOTFS_PKGMANAGE} task-osmocom task-sysmocom task-sysmocom-debug task-sysmocom-tools ${MACHINE_EXTRA_RDEPENDS} wget"
|
||||
IMAGE_LINGUAS = " "
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit core-image
|
||||
|
||||
IMAGE_ROOTFS_SIZE = "32768"
|
||||
|
||||
|
||||
link_uimage() {
|
||||
echo "Linking the current uImage to /boot/uImage"
|
||||
OLD_PWD=$PWD
|
||||
cd ${IMAGE_ROOTFS}/boot
|
||||
ln -s uImage-* uImage || true
|
||||
cd $OLD_PWD
|
||||
}
|
||||
|
||||
IMAGE_PREPROCESS_COMMAND += "link_uimage; "
|
|
@ -0,0 +1,8 @@
|
|||
require sysmocom-image.inc
|
||||
|
||||
# This variant of the image will run osmo-bts and osmo-nitb
|
||||
activate_nitb() {
|
||||
echo "NO_START=0" > ${IMAGE_ROOTFS}/etc/default/osmo-nitb
|
||||
}
|
||||
|
||||
IMAGE_PREPROCESS_COMMAND += "activate_nitb; "
|
|
@ -0,0 +1,5 @@
|
|||
start 10.23.24.123
|
||||
end 10.23.24.254
|
||||
|
||||
interface eth1
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
DESCRIPTION = "Task for sysmocom external tools"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
SRC_URI = "file://udhcpd.conf"
|
||||
|
||||
CONFFILES_${PN} = "${sysconfdir}/udhcpd.conf"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}/
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
PRINC = "6"
|
||||
|
||||
RDEPENDS_task-core-boot += ""
|
|
@ -0,0 +1,15 @@
|
|||
DESCRIPTION = "Task for sysmoBTS"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
DEPENDS = "virtual/kernel"
|
||||
ALLOW_EMPTY = "1"
|
||||
PR = "r11"
|
||||
|
||||
# TODO: re-add femtobts-calib after it went through the API migration
|
||||
RDEPENDS_task-sysmocom-bts = "\
|
||||
osmo-bts \
|
||||
osmo-bts-remote \
|
||||
lmsensors-scripts \
|
||||
"
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
DESCRIPTION = "Task for sysmocom development/debugging"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
DEPENDS = "virtual/kernel"
|
||||
ALLOW_EMPTY = "1"
|
||||
PR = "r2"
|
||||
|
||||
RDEPENDS_task-sysmocom-debug = "\
|
||||
dropbear \
|
||||
mtd-utils \
|
||||
strace \
|
||||
tcpdump \
|
||||
gdb \
|
||||
gdbserver \
|
||||
oprofile \
|
||||
net-tools \
|
||||
"
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
DESCRIPTION = "Task for E1 based sysmocom"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
ALLOW_EMPTY = "1"
|
||||
PR = "r1"
|
||||
|
||||
RDEPENDS_task-sysmocom-e1 = "\
|
||||
dahdi-linux \
|
||||
dahdi-firmware \
|
||||
dahdi-tools \
|
||||
"
|
|
@ -0,0 +1,15 @@
|
|||
DESCRIPTION = "Task for sysmocom external tools"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
ALLOW_EMPTY = "1"
|
||||
PR = "r6"
|
||||
|
||||
RDEPENDS_task-sysmocom-tools = "\
|
||||
lmsensors-scripts \
|
||||
dropbear \
|
||||
mtd-utils \
|
||||
screen \
|
||||
ethtool \
|
||||
ntpdate \
|
||||
"
|
|
@ -0,0 +1,18 @@
|
|||
DESCRIPTION = "Task for sysmocom"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
DEPENDS = "virtual/kernel"
|
||||
ALLOW_EMPTY = "1"
|
||||
PR = "r7"
|
||||
|
||||
RDEPENDS_task-sysmocom = "\
|
||||
task-sysmocom-tools \
|
||||
osmo-bsc \
|
||||
osmo-bsc-mgcp \
|
||||
osmo-bsc-nat \
|
||||
osmo-gbproxy \
|
||||
osmo-nitb \
|
||||
ipaccess-utils \
|
||||
"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
||||
|
||||
PRINC="2"
|
|
@ -0,0 +1,11 @@
|
|||
Welcome to
|
||||
____ _______ _____
|
||||
| _ \\__ __/ ____|
|
||||
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
|
||||
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
|
||||
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|
||||
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
|
||||
__/ |
|
||||
|___/ by sysmocom GmbH
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
Welcome to
|
||||
____ _______ _____
|
||||
| _ \\__ __/ ____|
|
||||
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
|
||||
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
|
||||
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|
||||
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
|
||||
__/ |
|
||||
|___/ by sysmocom GmbH
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
Welcome to
|
||||
____ _______ _____
|
||||
| _ \\__ __/ ____|
|
||||
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
|
||||
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
|
||||
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|
||||
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
|
||||
__/ |
|
||||
|___/ by sysmocom GmbH
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
Welcome to
|
||||
____ _______ _____
|
||||
| _ \\__ __/ ____|
|
||||
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
|
||||
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
|
||||
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|
||||
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
|
||||
__/ |
|
||||
|___/ by sysmocom GmbH
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,14 @@
|
|||
DESCRIPTION = "sysmocom Kernel"
|
||||
SECTION = "kernel"
|
||||
LICENSE = "GPLv2"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
|
||||
# Set this to 'preempt_rt' in the local.conf if you want a real time kernel
|
||||
LINUX_KERNEL_TYPE ?= standard
|
||||
|
||||
module_autoload_mISDN_l1loop = "mISDN_l1loop"
|
||||
module_autoload_mISDN_dsp = "mISDN_dsp"
|
||||
module_conf_mISDN_l1loop = "options mISDN_l1loop pri=1 nchannel=20"
|
||||
|
||||
FILES_${PN} = ""
|
|
@ -0,0 +1,53 @@
|
|||
inherit kernel
|
||||
require linux-sysmocom.inc
|
||||
|
||||
LINUX_VERSION ?= "3.2.19"
|
||||
LINUX_VERSION_EXTENSION ?= "-sysmocom-${LINUX_KERNEL_TYPE}"
|
||||
|
||||
# Overrides for the sysmocom bts v1
|
||||
BTS_FIRMWARE_NAME_sysmobts-v1 = "sysmobts-v1"
|
||||
|
||||
# Overrides for the sysmocom bts v2
|
||||
BTS_FIRMWARE_NAME_sysmobts-v2 = "sysmobts-v2"
|
||||
|
||||
SRCREV = "561f53aa574a18a061c5130e0be0f3622ddbc037"
|
||||
|
||||
PR = "r19"
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://git@git.sysmocom.de/sysmo-bts/linux.git;protocol=ssh;branch=v3.2 \
|
||||
file://mISDN_loop.patch;patch=1 \
|
||||
file://defconfig"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2)"
|
||||
EXTRA_OEMAKE += "KALLSYMS_EXTRA_PASS=1"
|
||||
|
||||
# we do not want to have the kernel image inside the kernel
|
||||
FILES_kernel-image_sysmobts-v1 = ""
|
||||
|
||||
require linux-tools.inc
|
||||
|
||||
do_configure() {
|
||||
install -m 0644 ${WORKDIR}/defconfig ${S}/.config
|
||||
oe_runmake oldconfig
|
||||
}
|
||||
|
||||
# autoload defaults (alphabetically sorted)
|
||||
module_autoload_davinci_wdt = "davinci_wdt"
|
||||
module_autoload_dspdl_dm644x = "dspdl_dm644x"
|
||||
module_autoload_fpgadl_par = "fpgadl_par"
|
||||
module_autoload_leds-gpio = "leds-gpio"
|
||||
module_autoload_msgqueue = "msgqueue"
|
||||
module_autoload_rtfifo = "rtfifo"
|
||||
|
||||
# module configs (alphabetically sorted)
|
||||
module_conf_dspdl_dm644x = "options dspdl_dm644x fw_name=${BTS_FIRMWARE_NAME}.out debug=1"
|
||||
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"
|
|
@ -0,0 +1,29 @@
|
|||
# included by kernel recipes if they want to build/provide
|
||||
# perf functionality from their tree.
|
||||
do_compile_perf_libc-uclibc () {
|
||||
:
|
||||
}
|
||||
do_install_perf_libc-uclibc () {
|
||||
:
|
||||
}
|
||||
do_compile_perf() {
|
||||
oe_runmake -C ${S}/tools/perf CC="${CC}" LD="${LD}" prefix=${prefix} NO_NEWT=1 NO_DWARF=1
|
||||
}
|
||||
|
||||
do_install_perf() {
|
||||
oe_runmake -C ${S}/tools/perf CC="${CC}" LD="${LD}" prefix=${prefix} DESTDIR=${D} install NO_NEWT=1 NO_DWARF=1
|
||||
}
|
||||
|
||||
|
||||
# perf tasks
|
||||
# TODO: enable with newer kernels
|
||||
#addtask compile_perf after do_compile before do_install
|
||||
#addtask install_perf after do_install before do_package
|
||||
|
||||
|
||||
PERFDEPENDS = "virtual/libc:do_populate_sysroot elfutils:do_populate_sysroot"
|
||||
PERFDEPENDS_libc-uclibc = ""
|
||||
PERFRDEPENDS = "python perl elfutils"
|
||||
PERFRDEPENDS_libc-uclibc = ""
|
||||
do_compile_perf[depends] = "${PERFDEPENDS}"
|
||||
RDEPENDS_perf += "${PERFRDEPENDS}"
|
|
@ -0,0 +1,20 @@
|
|||
inherit kernel
|
||||
require linux-sysmocom.inc
|
||||
|
||||
LINUX_VERSION ?= "${PV}"
|
||||
|
||||
PR = "r13"
|
||||
SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
|
||||
ftp://ftp.servus.at/linux-kernel/patch-2.6.39.4.bz2;apply=yes;name=stablepatch \
|
||||
file://mISDN_loop.patch \
|
||||
file://defconfig"
|
||||
|
||||
COMPATIBLE_MACHINE = "(sysmocom-bsc)"
|
||||
|
||||
|
||||
require linux-tools.inc
|
||||
|
||||
do_configure() {
|
||||
install -m 0644 ${WORKDIR}/defconfig ${S}/.config
|
||||
oe_runmake oldconfig
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
|
||||
|
||||
# The loopback interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
#eth0 is our gateway to the network. ifplugd will run ifup/ifdown for us
|
||||
iface eth0 inet dhcp
|
||||
|
||||
#eth0 will provide dhcp to clients
|
||||
#auto eth0:1
|
||||
#iface eth0:1 inet static
|
||||
# address 10.42.123.1
|
||||
# netmask 255.255.255.0
|
||||
# network 10.42.123.0
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
|
||||
|
||||
# The loopback interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
#eth0 is our gateway to the network. ifplugd will run ifup/ifdown for us
|
||||
iface eth0 inet dhcp
|
||||
|
||||
#eth0 will provide dhcp to clients
|
||||
#auto eth0:1
|
||||
#iface eth0:1 inet static
|
||||
# address 10.42.123.1
|
||||
# netmask 255.255.255.0
|
||||
# network 10.42.123.0
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
|
||||
|
||||
# The loopback interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
#eth0 is our gateway to the network. ifplugd will run ifup/ifdown for us
|
||||
iface eth0 inet dhcp
|
||||
|
||||
#eth1 will provide dhcp to clients
|
||||
auto eth1
|
||||
iface eth1 inet static
|
||||
address 10.23.24.1
|
||||
netmask 255.255.255.0
|
||||
network 10.23.24.0
|
||||
|
||||
auto eth1:1
|
||||
iface eth1:1 inet static
|
||||
address 10.23.123.1
|
||||
netmask 255.255.255.0
|
||||
network 10.23.123.0
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:"
|
||||
PRINC = "16"
|
||||
|
||||
|
||||
# bug in poky meta/classes/base.bbclass
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
@ -0,0 +1,31 @@
|
|||
#! /bin/sh
|
||||
|
||||
FLAGS="defaults 23"
|
||||
|
||||
test -f /usr/bin/ntpd || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting NTP server: ntpd"
|
||||
start-stop-daemon --start --quiet --exec /usr/bin/ntpd
|
||||
echo "."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping NTP server: ntpd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/ntpd
|
||||
echo "."
|
||||
;;
|
||||
restart|force-reload)
|
||||
echo -n "Restarting NTP server: ntpd... "
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/ntpd
|
||||
sleep 2
|
||||
start-stop-daemon --start --quiet --exec /usr/bin/ntpd
|
||||
echo "done."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/ntp {start|stop|restart|force-reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,17 @@
|
|||
--- a/include/ntp_syscall.h.orig 2009-05-19 16:44:55.048156467 -0400
|
||||
+++ b/include/ntp_syscall.h 2009-05-19 16:46:19.293323686 -0400
|
||||
@@ -14,6 +14,14 @@
|
||||
# include <sys/timex.h>
|
||||
#endif
|
||||
|
||||
+#if defined(ADJ_NANO) && !defined(MOD_NANO)
|
||||
+#define MOD_NANO ADJ_NANO
|
||||
+#endif
|
||||
+
|
||||
+#if defined(ADJ_TAI) && !defined(MOD_TAI)
|
||||
+#define MOD_TAI ADJ_TAI
|
||||
+#endif
|
||||
+
|
||||
#ifndef NTP_SYSCALLS_LIBC
|
||||
#ifdef NTP_SYSCALLS_STD
|
||||
# define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))
|
|
@ -0,0 +1,14 @@
|
|||
# This is the most basic ntp configuration file
|
||||
# The driftfile must remain in a place specific to this
|
||||
# machine - it records the machine specific clock error
|
||||
driftfile /etc/ntp.drift
|
||||
# This obtains a random server which will be close
|
||||
# (in IP terms) to the machine. Add other servers
|
||||
# as required, or change this.
|
||||
server pool.ntp.org
|
||||
# Using local hardware clock as fallback
|
||||
# Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
|
||||
server 127.127.1.0
|
||||
fudge 127.127.1.0 stratum 14
|
||||
# Defining a default security setting
|
||||
restrict default
|
|
@ -0,0 +1,62 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# ntpd init.d script for ntpdc from ntp.isc.org
|
||||
test -x /usr/bin/ntpd -a -r /etc/ntp.conf || exit 0
|
||||
# rcS contains TICKADJ
|
||||
test -r /etc/default/rcS && . /etc/default/rcS
|
||||
|
||||
# Functions to do individual actions
|
||||
settick(){
|
||||
# If TICKADJ is set we *must* adjust it before we start, because the
|
||||
# driftfile relies on the correct setting
|
||||
test -n "$TICKADJ" -a -x /usr/bin/tickadj && {
|
||||
echo -n "Setting tick to $TICKADJ: "
|
||||
/usr/bin/tickadj "$TICKADJ"
|
||||
echo "done"
|
||||
}
|
||||
}
|
||||
startdaemon(){
|
||||
# The -g option allows ntpd to step the time to correct it just
|
||||
# once. The daemon will exit if the clock drifts too much after
|
||||
# this. If ntpd seems to disappear after a while assume TICKADJ
|
||||
# above is set to a totally incorrect value.
|
||||
echo -n "Starting ntpd: "
|
||||
start-stop-daemon --start -x /usr/bin/ntpd -- -p /var/run/ntp.pid "$@"
|
||||
echo "done"
|
||||
}
|
||||
stopdaemon(){
|
||||
echo -n "Stopping ntpd: "
|
||||
start-stop-daemon --stop -p /var/run/ntp.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
settick
|
||||
startdaemon -g
|
||||
;;
|
||||
stop)
|
||||
stopdaemon
|
||||
;;
|
||||
force-reload)
|
||||
stopdaemon
|
||||
settick
|
||||
startdaemon -g
|
||||
;;
|
||||
restart)
|
||||
# Don't reset the tick here
|
||||
stopdaemon
|
||||
startdaemon -g
|
||||
;;
|
||||
reload)
|
||||
# Must do this by hand, but don't do -g
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ntpd { start | stop | restart | reload }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Network Time Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/ntpd.pid
|
||||
ExecStart=/usr/bin/ntpd -p /run/ntpd.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,49 @@
|
|||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
|
||||
test -x /usr/bin/ntpdate || exit 0
|
||||
|
||||
if test -f /etc/default/ntpdate ; then
|
||||
. /etc/default/ntpdate
|
||||
else
|
||||
NTPSERVERS="pool.ntp.org"
|
||||
fi
|
||||
|
||||
test -n "$NTPSERVERS" || exit 0
|
||||
|
||||
# This is a heuristic: The idea is that if a static interface is brought
|
||||
# up, that is a major event, and we can put in some extra effort to fix
|
||||
# the system time. Feel free to change this, especially if you regularly
|
||||
# bring up new network interfaces.
|
||||
if [ "$METHOD" = static ]; then
|
||||
OPTS="-b"
|
||||
fi
|
||||
|
||||
if [ "$METHOD" = loopback ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
(
|
||||
|
||||
LOCKFILE=/var/lock/ntpdate
|
||||
|
||||
# Avoid running more than one at a time
|
||||
if [ -x /usr/bin/lockfile-create ]; then
|
||||
lockfile-create $LOCKFILE
|
||||
lockfile-touch $LOCKFILE &
|
||||
LOCKTOUCHPID="$!"
|
||||
fi
|
||||
|
||||
if /usr/bin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then
|
||||
if [ "$UPDATE_HWCLOCK" = "yes" ]; then
|
||||
hwclock --systohc || :
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -x /usr/bin/lockfile-create ] ; then
|
||||
kill $LOCKTOUCHPID
|
||||
lockfile-remove $LOCKFILE
|
||||
fi
|
||||
|
||||
) &
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Network Time Service (one-shot ntpdate mode)
|
||||
Before=ntpd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/ntpd -q -g -x
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,32 @@
|
|||
Index: ntp-4.2.2p3-r0/ntp-4.2.2p3/util/tickadj.c
|
||||
===================================================================
|
||||
--- ntp-4.2.2p3/util/tickadj.c 2004-02-25 06:58:33.000000000 +0100
|
||||
+++ ntp-4.2.2p3/util/tickadj.c 2007-07-07 01:00:54.000000000 +0200
|
||||
@@ -21,7 +21,8 @@
|
||||
# include <unistd.h>
|
||||
#endif /* HAVE_UNISTD_H */
|
||||
|
||||
-#ifdef HAVE___ADJTIMEX /* Linux */
|
||||
+/* proper handling here has been moved to upstream ntp bugzilla */
|
||||
+#ifdef linux
|
||||
|
||||
#include <sys/timex.h>
|
||||
struct timex txc;
|
||||
@@ -91,7 +92,7 @@
|
||||
}
|
||||
|
||||
if (!errflg) {
|
||||
- if (__adjtimex(&txc) < 0)
|
||||
+ if (adjtimex(&txc) < 0)
|
||||
perror("adjtimex");
|
||||
else if (!quiet)
|
||||
printf("tick = %ld\ntick_adj = %d\n",
|
||||
@@ -146,7 +147,7 @@
|
||||
#endif
|
||||
}
|
||||
|
||||
- if (__adjtimex(&txc) < 0)
|
||||
+ if (adjtimex(&txc) < 0)
|
||||
{
|
||||
perror("adjtimex");
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
DESCRIPTION = "The Network Time Protocol (NTP) is used to \
|
||||
synchronize the time of a computer client or server to \
|
||||
another server or reference time source, such as a radio \
|
||||
or satellite receiver or modem."
|
||||
HOMEPAGE = "http://ntp.isc.org/bin/view/Main/WebHome"
|
||||
SECTION = "console/network"
|
||||
LICENSE = "ntp"
|
||||
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
|
||||
RSUGGESTS_${PN} = "iana-etc"
|
||||
|
||||
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
|
||||
file://ipv6only-workaround.patch \
|
||||
file://ntpd \
|
||||
file://ntp.conf \
|
||||
file://ntpdate \
|
||||
file://ntpd.service \
|
||||
"
|
||||
|
||||
inherit autotools update-rc.d
|
||||
|
||||
INITSCRIPT_NAME = "ntpd"
|
||||
# No dependencies, so just go in at the standard level (20)
|
||||
INITSCRIPT_PARAMS = "defaults"
|
||||
|
||||
# The ac_cv_header_readline_history is to stop ntpdc depending on either
|
||||
# readline or curses
|
||||
EXTRA_OECONF = "--without-openssl --without-crypto ac_cv_header_readline_history_h=no"
|
||||
CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
|
||||
|
||||
PACKAGES += "ntpdate ${PN}-bin ${PN}-tickadj ${PN}-utils"
|
||||
# NOTE: you don't need ntpdate, use "ntpd -q -g -x"
|
||||
# or the ntpdate systemd service
|
||||
|
||||
# This should use rc.update
|
||||
FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/init.d/ntpdate"
|
|
@ -0,0 +1,63 @@
|
|||
require ntp.inc
|
||||
|
||||
PR = "r5"
|
||||
|
||||
#inherit systemd
|
||||
|
||||
#SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||
#SYSTEMD_SERVICE_${PN}-systemd = "ntpd.service"
|
||||
|
||||
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
|
||||
file://tickadj.c.patch \
|
||||
file://ntp-4.2.4_p6-nano.patch \
|
||||
file://ntpd \
|
||||
file://ntp.conf \
|
||||
file://ntpdate \
|
||||
file://ntpdate.service \
|
||||
file://ntpd.service \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "59876a9009b098ff59767ee45a88ebd2"
|
||||
SRC_URI[sha256sum] = "6e84d4ddfa14b911c3ed88463af10867e1fa9b287e7b34d8a02e78be85a7c40e"
|
||||
|
||||
EXTRA_OECONF += " --with-net-snmp-config=no --without-ntpsnmpd"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}/${sysconfdir}/init.d
|
||||
install -m 644 ${WORKDIR}/ntp.conf ${D}/${sysconfdir}
|
||||
install -m 755 ${WORKDIR}/ntpd ${D}/${sysconfdir}/init.d
|
||||
install -d ${D}/${sysconfdir}/network/if-up.d
|
||||
install -m 755 ${WORKDIR}/ntpdate ${D}/${sysconfdir}/network/if-up.d
|
||||
|
||||
#install -d ${D}${systemd_unitdir}/system
|
||||
#install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
|
||||
#install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
|
||||
}
|
||||
|
||||
#PACKAGES =+ "${PN}-systemd"
|
||||
|
||||
#FILES_${PN}-systemd = "${systemd_unitdir}/system/"
|
||||
#RDEPENDS_${PN}-systemd = "${PN}"
|
||||
|
||||
FILES_${PN}-bin = "${bindir}/ntp-wait ${bindir}/ntpdc ${bindir}/ntpq ${bindir}/ntptime ${bindir}/ntptrace"
|
||||
FILES_${PN} = "${bindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd"
|
||||
FILES_${PN}-tickadj = "${bindir}/tickadj"
|
||||
FILES_ntp-utils = "${bindir}/*"
|
||||
FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/network/if-up.d/ntpdate"
|
||||
|
||||
# ntp originally includes tickadj. It's split off for inclusion in small firmware images on platforms
|
||||
# with wonky clocks (e.g. OpenSlug)
|
||||
RDEPENDS_${PN} = "${PN}-tickadj"
|
||||
|
||||
pkg_postinst_ntpdate() {
|
||||
if test "x$D" != "x"; then
|
||||
exit 1
|
||||
else
|
||||
if ! grep -q -s ntpdate /var/spool/cron/root; then
|
||||
echo "adding crontab"
|
||||
test -d /var/spool/cron || mkdir -p /var/spool/cron
|
||||
echo "30 * * * * /usr/bin/ntpdate -b -s -u pool.ntp.org" >> /var/spool/cron/root
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
#!/bin/sh
|
||||
#/etc/init.d/watchdog: start watchdog daemon.
|
||||
#based on debian/init of watchdog
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: watchdog
|
||||
# Short-Description: Start software watchdog daemon
|
||||
# Required-Start: $all
|
||||
# Required-Stop: $all
|
||||
# Should-Start:
|
||||
# Should-Stop:
|
||||
# Default-Start: S
|
||||
# Default-Stop:
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
test -x /usr/sbin/watchdog || exit 0
|
||||
|
||||
# For configuration of the init script use the file
|
||||
# /etc/default/watchdog, do not edit this init script.
|
||||
|
||||
# Set run_watchdog to 1 to start watchdog or 0 to disable it.
|
||||
|
||||
# Specify additional watchdog options here (see manpage).
|
||||
watchdog_options=""
|
||||
|
||||
# Specify module to load
|
||||
watchdog_module="none"
|
||||
|
||||
run_watchdog=1
|
||||
|
||||
[ -e /etc/default/watchdog ] && . /etc/default/watchdog
|
||||
|
||||
NAME=watchdog
|
||||
|
||||
DAEMON=/usr/sbin/watchdog
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ $run_watchdog = 1 ]
|
||||
then
|
||||
# do we have to load a module?
|
||||
[ ${watchdog_module:-none} != "none" ] && /sbin/modprobe $watchdog_module
|
||||
|
||||
# Unconditionally start watchdog daemon because we want to run it even
|
||||
# if wd_keepalive wasn't running
|
||||
echo "Starting watchdog daemon..."
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
||||
--exec $DAEMON -- $watchdog_options
|
||||
fi
|
||||
;;
|
||||
|
||||
stop)
|
||||
if [ $run_watchdog = 1 ]
|
||||
then
|
||||
echo "Stopping watchdog daemon..."
|
||||
start-stop-daemon --stop -s 9 --quiet \
|
||||
--pidfile /var/run/$NAME.pid
|
||||
fi
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 force-reload
|
||||
;;
|
||||
|
||||
force-reload)
|
||||
if [ $run_watchdog = 0 ]; then exit 0; fi
|
||||
echo "Restarting ${NAME}"
|
||||
stop
|
||||
start
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: /etc/init.d/watchdog {start|stop|restart|force-reload}"
|
||||
exit 1
|
||||
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
#ping = 172.31.14.1
|
||||
#ping = 172.26.1.255
|
||||
#interface = eth0
|
||||
#file = /var/log/messages
|
||||
#change = 1407
|
||||
|
||||
# Uncomment to enable test. Setting one of these values to '0' disables it.
|
||||
# These values will hopefully never reboot your machine during normal use
|
||||
# (if your machine is really hung, the loadavg will go much higher than 25)
|
||||
#max-load-1 = 24
|
||||
#max-load-5 = 18
|
||||
#max-load-15 = 12
|
||||
|
||||
# Note that this is the number of pages!
|
||||
# To get the real size, check how large the pagesize is on your machine.
|
||||
#min-memory = 1
|
||||
|
||||
#repair-binary = /usr/sbin/repair
|
||||
#repair-timeout =
|
||||
#test-binary =
|
||||
#test-timeout =
|
||||
|
||||
watchdog-device = /dev/watchdog
|
||||
|
||||
# Defaults compiled into the binary
|
||||
#temperature-device =
|
||||
#max-temperature = 120
|
||||
|
||||
# Defaults compiled into the binary
|
||||
#admin = root
|
||||
#interval = 1
|
||||
#logtick = 1
|
||||
#log-dir = /var/log/watchdog
|
||||
|
||||
# This greatly decreases the chance that watchdog won't be scheduled before
|
||||
# your machine is really loaded
|
||||
realtime = yes
|
||||
priority = 1
|
||||
|
||||
# Check if syslogd is still running by enabling the following line
|
||||
#pidfile
|
|
@ -0,0 +1,41 @@
|
|||
#ping = 172.31.14.1
|
||||
#ping = 172.26.1.255
|
||||
#interface = eth0
|
||||
#file = /var/log/messages
|
||||
#change = 1407
|
||||
|
||||
# Uncomment to enable test. Setting one of these values to '0' disables it.
|
||||
# These values will hopefully never reboot your machine during normal use
|
||||
# (if your machine is really hung, the loadavg will go much higher than 25)
|
||||
#max-load-1 = 24
|
||||
#max-load-5 = 18
|
||||
#max-load-15 = 12
|
||||
|
||||
# Note that this is the number of pages!
|
||||
# To get the real size, check how large the pagesize is on your machine.
|
||||
#min-memory = 1
|
||||
|
||||
#repair-binary = /usr/sbin/repair
|
||||
#repair-timeout =
|
||||
#test-binary =
|
||||
#test-timeout =
|
||||
|
||||
watchdog-device = /dev/watchdog
|
||||
|
||||
# Defaults compiled into the binary
|
||||
#temperature-device =
|
||||
#max-temperature = 120
|
||||
|
||||
# Defaults compiled into the binary
|
||||
#admin = root
|
||||
#interval = 1
|
||||
#logtick = 1
|
||||
#log-dir = /var/log/watchdog
|
||||
|
||||
# This greatly decreases the chance that watchdog won't be scheduled before
|
||||
# your machine is really loaded
|
||||
realtime = yes
|
||||
priority = 1
|
||||
|
||||
# Check if syslogd is still running by enabling the following line
|
||||
#pidfile
|
|
@ -0,0 +1,25 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:"
|
||||
PRINC = "6"
|
||||
|
||||
inherit update-rc.d
|
||||
|
||||
SRC_URI_append_sysmobts-v1 = " file://watchdog.conf file://init"
|
||||
SRC_URI_append_sysmobts-v2 = " file://watchdog.conf file://init"
|
||||
|
||||
do_install_append() {
|
||||
|
||||
if [ -e ${WORKDIR}/watchdog.conf ]; then
|
||||
install -D -m 0644 ${WORKDIR}/watchdog.conf ${D}/${sysconfdir}/
|
||||
fi
|
||||
|
||||
install -D -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/watchdog
|
||||
}
|
||||
|
||||
CONFFILES_${PN} = "${sysconfdir}/watchdog.conf"
|
||||
INITSCRIPT_PACKAGES = "${PN}"
|
||||
INITSCRIPT_NAME_${PN} = "watchdog"
|
||||
INITSCRIPT_PARAMS_${PN} = "start 06 S ."
|
||||
|
||||
# bug in poky meta/classes/base.bbclass?
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
@ -0,0 +1,49 @@
|
|||
DESCRIPTION = "Hardware health monitoring applications"
|
||||
HOMEPAGE = "http://www.lm-sensors.org/"
|
||||
DEPENDS = "sysfsutils virtual/libiconv"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
PR = "r2"
|
||||
DEPENDS = "bison-native flex-native"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2"
|
||||
|
||||
SRC_URI[md5sum] = "829d88fb09d67723fbf42853eb84d1fd"
|
||||
SRC_URI[sha256sum] = "bde7e1d8b473bca6528694b696668c4cd0a28515aef36b961e4f7d8a6b47e581"
|
||||
|
||||
S = "${WORKDIR}/lm_sensors-${PV}"
|
||||
|
||||
EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \
|
||||
MACHINE=${TARGET_ARCH} PREFIX=${prefix} CC="${CC}" AR="${AR}"'
|
||||
|
||||
do_compile() {
|
||||
oe_runmake user PROG_EXTRA=sensors
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake user_install DESTDIR=${D}
|
||||
|
||||
# move manuals into proper place
|
||||
install -d ${D}${mandir}
|
||||
rm -rf ${D}${mandir}/*
|
||||
mv ${D}/usr/man/* ${D}${mandir}
|
||||
}
|
||||
|
||||
PACKAGES =+ "libsensors libsensors-dev libsensors-dbg libsensors-doc"
|
||||
PACKAGES =+ "lmsensors-sensors lmsensors-sensors-dbg lmsensors-sensors-doc"
|
||||
PACKAGES =+ "lmsensors-scripts sensors-detect"
|
||||
|
||||
FILES_sensors-detect = "${sbindir}/sensors-detect"
|
||||
RDEPENDS_sensors-detect += "perl"
|
||||
|
||||
FILES_lmsensors-scripts = "${bindir}/ddcmon ${sbindir}/fancontrol* ${sbindir}/pwmconfig"
|
||||
RDEPENDS_lmsensors-scripts += "lmsensors-sensors bash"
|
||||
|
||||
FILES_lmsensors-sensors = "${bindir}/sensors ${sysconfdir}"
|
||||
FILES_lmsensors-sensors-dbg += "${bindir}/.debug/sensors"
|
||||
FILES_lmsensors-sensors-doc = "${mandir}/man1 ${mandir}/man5"
|
||||
FILES_libsensors = "${libdir}/libsensors.so.*"
|
||||
FILES_libsensors-dbg += "${libdir}/.debug"
|
||||
FILES_libsensors-dev = "${libdir}/libsensors.so ${libdir}/libsensors.a ${includedir}"
|
||||
FILES_libsensors-doc = "${mandir}/man3"
|
|
@ -0,0 +1,946 @@
|
|||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
The patch is from http://git.openembedded.org/openembedded/tree/recipes/socat/files/compile.patch
|
||||
and was rebased to socat-1.7.2.0.
|
||||
|
||||
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
|
||||
Fri Dec 16 17:12:17 CST 2011
|
||||
|
||||
diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
|
||||
--- socat-1.7.2.0.orig/configure.in 2011-12-04 21:34:16.000000000 +0800
|
||||
+++ socat-1.7.2.0/configure.in 2011-12-16 17:08:59.698367071 +0800
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
|
||||
dnl Check for extra socket library (for Solaris)
|
||||
-AC_CHECK_FUNC(hstrerror, , AC_CHECK_LIB(resolv, hstrerror, [LIBS="$LIBS -lresolv"; AC_DEFINE(HAVE_HSTRERROR)]))
|
||||
+AC_CHECK_FUNC(hstrerror, , AC_CHECK_LIB(resolv, hstrerror, [LIBS="$LIBS -lresolv"; AC_DEFINE(HAVE_HSTRERROR, [1], [STRERROR])]))
|
||||
AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
|
||||
AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
[sc_cv_have_prototype_hstrerror=yes]);
|
||||
CFLAGS="$CFLAGS1"])
|
||||
if test $sc_cv_have_prototype_hstrerror = yes; then
|
||||
- AC_DEFINE(HAVE_PROTOTYPE_HSTRERROR)
|
||||
+ AC_DEFINE(HAVE_PROTOTYPE_HSTRERROR, [1], [Has Strerror])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_have_prototype_hstrerror)
|
||||
|
||||
@@ -111,83 +111,83 @@
|
||||
AC_ARG_ENABLE(help, [ --disable-help disable help],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_HELP) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_HELP, [1], [With help]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_HELP) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_HELP, [1], [With help]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include STDIO support)
|
||||
AC_ARG_ENABLE(stdio, [ --disable-stdio disable STDIO support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_STDIO) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_STDIO, [1], [With stdio]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_STDIO) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_STDIO, [1], [With stdio]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include FD-number support)
|
||||
AC_ARG_ENABLE(fdnum, [ --disable-fdnum disable FD-number support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_FDNUM) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_FDNUM, [1], [With fdnum]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_FDNUM) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_FDNUM, [1], [With fdnum]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include direct file support)
|
||||
AC_ARG_ENABLE(file, [ --disable-file disable direct file support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_FILE) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_FILE, [1], [With file]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_FILE) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_FILE, [1], [With file]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include direct create support)
|
||||
AC_ARG_ENABLE(creat, [ --disable-creat disable direct create support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_CREAT) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_CREAT, [1], [With creat]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_CREAT) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_CREAT, [1], [With creat]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include gopen support)
|
||||
AC_ARG_ENABLE(gopen, [ --disable-gopen disable open for UNIX socket support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_GOPEN) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_GOPEN, [1], [With gopen]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_GOPEN) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_GOPEN, [1], [With gopen]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include explicit pipe support)
|
||||
AC_ARG_ENABLE(pipe, [ --disable-pipe disable pipe support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_PIPE) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_PIPE, [1], [With pipe]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_PIPE) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_PIPE, [1], [With pipe]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include explicit termios support)
|
||||
AC_ARG_ENABLE(termios, [ --disable-termios disable termios support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_TERMIOS) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_TERMIOS, [1], [With termios]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_TERMIOS) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_TERMIOS, [1], [With termios]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include UNIX socket support)
|
||||
AC_ARG_ENABLE(unix, [ --disable-unix disable UNIX domain socket support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_UNIX) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_UNIX, [1], [With unix]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_UNIX) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_UNIX, [1], [With unix]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include abstract UNIX socket support)
|
||||
AC_ARG_ENABLE(abstract_unixsocket, [ --disable-abstract-unixsocket disable abstract UNIX domain socket support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_ABSTRACT_UNIXSOCKET) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_ABSTRACT_UNIXSOCKET, [1], [With abstract unix socket]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
[ case "`uname`" in
|
||||
Linux)
|
||||
- AC_DEFINE(WITH_ABSTRACT_UNIXSOCKET) AC_MSG_RESULT(yes);;
|
||||
+ AC_DEFINE(WITH_ABSTRACT_UNIXSOCKET, [1], [With abstract unix socket]) AC_MSG_RESULT(yes);;
|
||||
*)
|
||||
AC_MSG_RESULT(no);;
|
||||
esac])
|
||||
@@ -196,9 +196,9 @@
|
||||
AC_ARG_ENABLE(ip4, [ --disable-ip4 disable IPv4 support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_IP4) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_IP4, [1], [with ipv4]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_IP4) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_IP4, [1], [with ipv4]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include IPv6 support)
|
||||
AC_ARG_ENABLE(ip6, [ --disable-ip6 disable IPv6 support],
|
||||
@@ -209,7 +209,7 @@
|
||||
[ AC_MSG_RESULT(yes); WITH_IP6=1 ])
|
||||
if test "$WITH_IP6"; then
|
||||
AC_CHECK_HEADERS([netinet/ip6.h],
|
||||
- [AC_DEFINE(HAVE_NETINET_IP6_H) AC_DEFINE(WITH_IP6)],
|
||||
+ [AC_DEFINE(HAVE_NETINET_IP6_H) AC_DEFINE(WITH_IP6, [1], [with ipv6])],
|
||||
[AC_MSG_WARN([include file netinet/ip6.h not found, disabling IP6])],
|
||||
[AC_INCLUDES_DEFAULT
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
@@ -242,17 +242,17 @@
|
||||
AC_ARG_ENABLE(rawip, [ --disable-rawip disable raw IP support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_RAWIP) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_RAWIP, [1], [With reawip]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_RAWIP) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_RAWIP, [1], [With rawip]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include generic socket support)
|
||||
AC_ARG_ENABLE(rawsocket, [ --disable-genericsocket disable generic socket support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_GENERICSOCKET) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_GENERICSOCKET, [1], [With genericsocket]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_GENERICSOCKET) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_GENERICSOCKET, [1], [With genericsocket]) AC_MSG_RESULT(yes)])
|
||||
AC_MSG_CHECKING(whether to include raw network interface support)
|
||||
AC_ARG_ENABLE(interface, [ --disable-interface disable network interface support],
|
||||
[case "$enableval" in
|
||||
@@ -262,35 +262,35 @@
|
||||
[AC_MSG_RESULT(yes); WITH_INTERFACE=1 ])
|
||||
if test "$WITH_INTERFACE"; then
|
||||
AC_CHECK_HEADER(netpacket/packet.h,
|
||||
- AC_DEFINE(HAVE_NETPACKET_PACKET_H),
|
||||
+ AC_DEFINE(HAVE_NETPACKET_PACKET_H, [1], [Has packet.h]),
|
||||
[WITH_INTERFACE=;
|
||||
AC_MSG_WARN([include file netpacket/packet.h not found, disabling interface])])
|
||||
fi
|
||||
if test "$WITH_INTERFACE"; then
|
||||
AC_CHECK_HEADER(netinet/if_ether.h,
|
||||
- AC_DEFINE(HAVE_NETINET_IF_ETHER_H),
|
||||
+ AC_DEFINE(HAVE_NETINET_IF_ETHER_H, [1], [Has if_ether.h]),
|
||||
[WITH_INTERFACE=;
|
||||
AC_MSG_WARN([include file netinet/if_ether.h not found, disabling interface])])
|
||||
fi
|
||||
if test "$WITH_INTERFACE"; then
|
||||
- AC_DEFINE(WITH_INTERFACE)
|
||||
+ AC_DEFINE(WITH_INTERFACE, [1], [Wither interface])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether to include TCP support)
|
||||
AC_ARG_ENABLE(tcp, [ --disable-tcp disable TCP support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_TCP) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_TCP, [1], [With TCP]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_TCP) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_TCP, [1], [With TCP]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include UDP support)
|
||||
AC_ARG_ENABLE(udp, [ --disable-udp disable UDP support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_UDP) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_UDP, [1], [With UDP]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_UDP) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_UDP, [1], [With UDP]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include SCTP support)
|
||||
AC_ARG_ENABLE(sctp, [ --disable-sctp disable SCTP support],
|
||||
@@ -310,7 +310,7 @@
|
||||
[sc_cv_define_ipproto_sctp=no])])
|
||||
AC_MSG_RESULT($sc_cv_define_ipproto_sctp)
|
||||
if test $sc_cv_define_ipproto_sctp = yes; then
|
||||
- AC_DEFINE(WITH_SCTP)
|
||||
+ AC_DEFINE(WITH_SCTP, [1], [With SCTP])
|
||||
else
|
||||
AC_MSG_WARN([IPPROTO_SCTP undefined, disabling SCTP support])
|
||||
fi
|
||||
@@ -320,65 +320,65 @@
|
||||
AC_ARG_ENABLE(listen, [ --disable-listen disable listen support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_LISTEN) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_LISTEN, [1], [With listen]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_LISTEN) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_LISTEN, [1], [With listen]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include socks4 support)
|
||||
AC_ARG_ENABLE(socks4, [ --disable-socks4 disable socks4 support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_SOCKS4) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_SOCKS4, [1], [With socks]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_SOCKS4) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_SOCKS4, [1], [With socks]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include socks4a support)
|
||||
AC_ARG_ENABLE(socks4a, [ --disable-socks4a disable socks4a support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_SOCKS4A) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_SOCKS4A, [1], [With socks4a]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_SOCKS4A) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_SOCKS4A, [1], [With socks4a]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include proxy connect support)
|
||||
AC_ARG_ENABLE(proxy, [ --disable-proxy disable proxy connect support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_PROXY) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_PROXY, [1], [With proxy]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_PROXY) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_PROXY, [1], [With proxy]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include exec support)
|
||||
AC_ARG_ENABLE(exec, [ --disable-exec disable exec support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_EXEC) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_EXEC, [1], [With exec]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_EXEC) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_EXEC, [1], [With exec]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING([whether to include system (shell) support])
|
||||
AC_ARG_ENABLE(system, [ --disable-system disable system (shell) support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_SYSTEM) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_SYSTEM, [1], [With system]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_SYSTEM) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_SYSTEM, [1], [With system]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include pty address support)
|
||||
AC_ARG_ENABLE(pty, [ --disable-pty disable pty support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_PTY) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_PTY, [1], [With pty]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_PTY) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_PTY, [1], [With pty]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include ext2 fs attributes support)
|
||||
AC_ARG_ENABLE(ext2, [ --disable-ext2 disable ext2 fs attributes support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_EXT2) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_EXT2, [1], [With ext2]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_EXT2) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_EXT2, [1], [With ext2]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(whether to include readline support)
|
||||
AC_ARG_ENABLE(readline, [ --disable-readline disable readline support],
|
||||
@@ -423,10 +423,10 @@
|
||||
|
||||
if test -n "$sc_usable_readline_found"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
- AC_DEFINE(HAVE_READLINE_READLINE_H,1)
|
||||
- AC_DEFINE(HAVE_READLINE_HISTORY_H,1)
|
||||
- AC_DEFINE(HAVE_LIBREADLINE,1)
|
||||
- AC_DEFINE(WITH_READLINE,1)
|
||||
+ AC_DEFINE(HAVE_READLINE_READLINE_H,1, [have readline])
|
||||
+ AC_DEFINE(HAVE_READLINE_HISTORY_H,1, [have history])
|
||||
+ AC_DEFINE(HAVE_LIBREADLINE,1, [have readline])
|
||||
+ AC_DEFINE(WITH_READLINE,1, [with readline])
|
||||
break
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
@@ -469,7 +469,7 @@
|
||||
done])
|
||||
])
|
||||
if test "$sc_cv_have_openssl_ssl_h" = "yes"; then
|
||||
- AC_DEFINE(HAVE_OPENSSL_SSL_H)
|
||||
+ AC_DEFINE(HAVE_OPENSSL_SSL_H, [1], [have openssl.h])
|
||||
fi
|
||||
AC_MSG_NOTICE(checked for openssl/ssl.h... $sc_cv_have_openssl_ssl_h)
|
||||
fi # end checking for openssl/ssl.h
|
||||
@@ -501,7 +501,7 @@
|
||||
]
|
||||
)
|
||||
if test "$sc_cv_have_libssl" = 'yes'; then
|
||||
- AC_DEFINE(HAVE_LIBSSL)
|
||||
+ AC_DEFINE(HAVE_LIBSSL, [1], [libssl])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_have_libssl)
|
||||
fi
|
||||
@@ -529,7 +529,7 @@
|
||||
#fi
|
||||
if test -n "$WITH_OPENSSL"; then
|
||||
if test "$sc_cv_have_openssl_ssl_h" = "yes" -a "$sc_cv_have_libssl" = "yes"; then
|
||||
- AC_DEFINE(WITH_OPENSSL)
|
||||
+ AC_DEFINE(WITH_OPENSSL, [1], [With openssl])
|
||||
else
|
||||
AC_MSG_WARN([not all components of OpenSSL found, disabling it]);
|
||||
fi
|
||||
@@ -577,7 +577,7 @@
|
||||
)]
|
||||
)
|
||||
if test "$sv_cv_have_openssl_fips_h" = "yes"; then
|
||||
- AC_DEFINE(HAVE_OPENSSL_FIPS_H)
|
||||
+ AC_DEFINE(HAVE_OPENSSL_FIPS_H, [1], [OpenSSL fips.h])
|
||||
fi
|
||||
AC_MSG_NOTICE(checked for openssl/fips.h... $sc_cv_have_openssl_ssl_h)
|
||||
fi
|
||||
@@ -608,15 +608,15 @@
|
||||
]
|
||||
)
|
||||
if test "$sc_cv_have_libcrypto" = 'yes'; then
|
||||
- AC_DEFINE(HAVE_LIBCRYPTO)
|
||||
+ AC_DEFINE(HAVE_LIBCRYPTO, [1], [libcrypto])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_have_libcrypto)
|
||||
fi
|
||||
|
||||
if test -n "$WITH_FIPS"; then
|
||||
if test "$sc_cv_have_openssl_fips_h" = 'yes' -a "$sc_cv_have_libcrypto" = 'yes'; then
|
||||
- AC_DEFINE(WITH_FIPS)
|
||||
- AC_DEFINE(OPENSSL_FIPS)
|
||||
+ AC_DEFINE(WITH_FIPS, [1], [With fips])
|
||||
+ AC_DEFINE(OPENSSL_FIPS, [1], [openssl fips])
|
||||
else
|
||||
AC_MSG_WARN([not all components of OpenSSL FIPS found, disabling it]);
|
||||
fi
|
||||
@@ -637,17 +637,17 @@
|
||||
fi
|
||||
#
|
||||
if test -n "$WITH_TUN"; then
|
||||
- AC_DEFINE(WITH_TUN)
|
||||
+ AC_DEFINE(WITH_TUN, [1], [with tun])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether to include system call tracing)
|
||||
AC_ARG_ENABLE(sycls, [ --disable-sycls disable system call tracing],
|
||||
[case "$enableval" in
|
||||
no) SYCLS=""; SSLCLS=""; AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_SYCLS)
|
||||
+ *) AC_DEFINE(WITH_SYCLS, [1], [syscls])
|
||||
SYCLS="sycls.c"; SSLCLS="sslcls.c"; AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_SYCLS)
|
||||
+ [AC_DEFINE(WITH_SYCLS, [1], [syscls])
|
||||
SYCLS="sycls.c"; SSLCLS="sslcls.c"; AC_MSG_RESULT(yes)])
|
||||
AC_SUBST(SYCLS)
|
||||
AC_SUBST(SSLCLS)
|
||||
@@ -656,31 +656,31 @@
|
||||
AC_ARG_ENABLE(filan, [ --disable-filan disable file descriptor analyzer],
|
||||
[case "$enableval" in
|
||||
no) FILAN=""; AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_FILAN) FILAN="filan.c"; AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_FILAN, [1], [filan]) FILAN="filan.c"; AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_FILAN) FILAN="filan.c"; AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_FILAN, [1], [filan]) FILAN="filan.c"; AC_MSG_RESULT(yes)])
|
||||
AC_SUBST(FILAN)
|
||||
|
||||
AC_MSG_CHECKING(whether to include retry support)
|
||||
AC_ARG_ENABLE(retry, [ --disable-retry disable retry support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no);;
|
||||
- *) AC_DEFINE(WITH_RETRY) AC_MSG_RESULT(yes);;
|
||||
+ *) AC_DEFINE(WITH_RETRY, [1], [retry]) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_RETRY) AC_MSG_RESULT(yes)])
|
||||
+ [AC_DEFINE(WITH_RETRY, [1], [retry]) AC_MSG_RESULT(yes)])
|
||||
|
||||
AC_MSG_CHECKING(included message level)
|
||||
AC_ARG_ENABLE(msglevel, [ --enable-msglevel=N set max verbosity to debug,info,notice,warn,error,fatal],
|
||||
[case "$enableval" in
|
||||
- debug) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);;
|
||||
- info) AC_DEFINE(WITH_MSGLEVEL,1) AC_MSG_RESULT(info);;
|
||||
- notice) AC_DEFINE(WITH_MSGLEVEL,2) AC_MSG_RESULT(notice);;
|
||||
- warn) AC_DEFINE(WITH_MSGLEVEL,3) AC_MSG_RESULT(warn);;
|
||||
- error) AC_DEFINE(WITH_MSGLEVEL,4) AC_MSG_RESULT(error);;
|
||||
- fatal) AC_DEFINE(WITH_MSGLEVEL,5) AC_MSG_RESULT(fatal);;
|
||||
- *) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);;
|
||||
+ debug) AC_DEFINE(WITH_MSGLEVEL,0, [msglevel]) AC_MSG_RESULT(debug);;
|
||||
+ info) AC_DEFINE(WITH_MSGLEVEL,1, [msglevel]) AC_MSG_RESULT(info);;
|
||||
+ notice) AC_DEFINE(WITH_MSGLEVEL,2, [msglevel]) AC_MSG_RESULT(notice);;
|
||||
+ warn) AC_DEFINE(WITH_MSGLEVEL,3, [msglevel]) AC_MSG_RESULT(warn);;
|
||||
+ error) AC_DEFINE(WITH_MSGLEVEL,4, [msglevel]) AC_MSG_RESULT(error);;
|
||||
+ fatal) AC_DEFINE(WITH_MSGLEVEL,5, [msglevel]) AC_MSG_RESULT(fatal);;
|
||||
+ *) AC_DEFINE(WITH_MSGLEVEL,0, [msglevel]) AC_MSG_RESULT(debug);;
|
||||
esac],
|
||||
- [AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug)])
|
||||
+ [AC_DEFINE(WITH_MSGLEVEL,0, [msglevel]) AC_MSG_RESULT(debug)])
|
||||
|
||||
#AC_SUBST(V_INCL)
|
||||
|
||||
@@ -697,7 +697,7 @@
|
||||
AC_HEADER_TIME
|
||||
|
||||
dnl Check for extra realtime library (for Solaris)
|
||||
-AC_CHECK_FUNC(nanosleep, AC_DEFINE(HAVE_NANOSLEEP), AC_CHECK_LIB(rt, nanosleep, [LIBS="-lrt $LIBS"; AC_DEFINE(HAVE_NANOSLEEP)]))
|
||||
+AC_CHECK_FUNC(nanosleep, AC_DEFINE(HAVE_NANOSLEEP, [1], [have nanosleep]), AC_CHECK_LIB(rt, nanosleep, [LIBS="-lrt $LIBS"; AC_DEFINE(HAVE_NANOSLEEP, [1], [have nanosleep])]))
|
||||
#AC_CHECK_FUNC(nanosleep, , AC_CHECK_LIB(rt, nanosleep))
|
||||
|
||||
dnl Checks for library functions.
|
||||
@@ -719,7 +719,7 @@
|
||||
[sc_cv_type_longlong=yes],
|
||||
[sc_cv_type_longlong=no])])
|
||||
if test $sc_cv_type_longlong = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_LONGLONG)
|
||||
+ AC_DEFINE(HAVE_TYPE_LONGLONG, [1], [have type long long])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_longlong)
|
||||
|
||||
@@ -735,7 +735,7 @@
|
||||
[sc_cv_type_socklen=yes],
|
||||
[sc_cv_type_socklen=no])])
|
||||
if test $sc_cv_type_socklen = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_SOCKLEN)
|
||||
+ AC_DEFINE(HAVE_TYPE_SOCKLEN, [1], [Has Socklen])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_socklen)
|
||||
|
||||
@@ -745,7 +745,7 @@
|
||||
[sc_cv_type_stat64=yes],
|
||||
[sc_cv_type_stat64=no])])
|
||||
if test $sc_cv_type_stat64 = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_STAT64)
|
||||
+ AC_DEFINE(HAVE_TYPE_STAT64, [1], [Has stat64])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_stat64)
|
||||
|
||||
@@ -755,7 +755,7 @@
|
||||
[sc_cv_type_off64=yes],
|
||||
[sc_cv_type_off64=no])])
|
||||
if test $sc_cv_type_off64 = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_OFF64)
|
||||
+ AC_DEFINE(HAVE_TYPE_OFF64, [1], [have off64])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_off64)
|
||||
|
||||
@@ -765,7 +765,7 @@
|
||||
[sc_cv_type_sighandler=yes],
|
||||
[sc_cv_type_sighandler=no])])
|
||||
if test $sc_cv_type_sighandler = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_SIGHANDLER)
|
||||
+ AC_DEFINE(HAVE_TYPE_SIGHANDLER, [1], [have type sighandler])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_socklen)
|
||||
|
||||
@@ -783,7 +783,7 @@
|
||||
[sc_cv_type_uint8=yes],
|
||||
[sc_cv_type_uint8=no])])
|
||||
if test $sc_cv_type_uint8 = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_UINT8)
|
||||
+ AC_DEFINE(HAVE_TYPE_UINT8, [1], [have uint8])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_uint8)
|
||||
|
||||
@@ -801,7 +801,7 @@
|
||||
[sc_cv_type_uint16=yes],
|
||||
[sc_cv_type_uint16=no])])
|
||||
if test $sc_cv_type_uint16 = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_UINT16)
|
||||
+ AC_DEFINE(HAVE_TYPE_UINT16, [1], [have uint16t])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_uint16)
|
||||
|
||||
@@ -819,7 +819,7 @@
|
||||
[sc_cv_type_uint32=yes],
|
||||
[sc_cv_type_uint32=no])])
|
||||
if test $sc_cv_type_uint32 = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_UINT32)
|
||||
+ AC_DEFINE(HAVE_TYPE_UINT32, [1], [have uint32])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_uint32)
|
||||
|
||||
@@ -837,7 +837,7 @@
|
||||
[sc_cv_type_uint64=yes],
|
||||
[sc_cv_type_uint64=no])])
|
||||
if test $sc_cv_type_uint64 = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_UINT64)
|
||||
+ AC_DEFINE(HAVE_TYPE_UINT64, [1], [have uint64] )
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_uint64)
|
||||
|
||||
@@ -859,7 +859,7 @@
|
||||
#include <sys/select.h>
|
||||
#endif],
|
||||
[fd_set s; s.fds_bits[0]=0;],
|
||||
-[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FDS_BITS)],
|
||||
+[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FDS_BITS, [1], [have fds bits])],
|
||||
[AC_MSG_RESULT(no);])
|
||||
|
||||
AC_MSG_CHECKING(for sa_family_t)
|
||||
@@ -870,7 +870,7 @@
|
||||
[sc_cv_type_sa_family_t=yes],
|
||||
[sc_cv_type_sa_family_t=no])])
|
||||
if test $sc_cv_type_sa_family_t = yes; then
|
||||
- AC_DEFINE(HAVE_TYPE_SA_FAMILY_T)
|
||||
+ AC_DEFINE(HAVE_TYPE_SA_FAMILY_T, [1], [have sa family_t type])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_sa_family_t)
|
||||
|
||||
@@ -880,7 +880,7 @@
|
||||
[sc_cv_struct_sigaction_sa_sigaction=yes],
|
||||
[sc_cv_struct_sigaction_sa_sigaction=no])])
|
||||
if test $sc_cv_struct_sigaction_sa_sigaction = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_SIGACTION_SA_SIGACTION)
|
||||
+ AC_DEFINE(HAVE_STRUCT_SIGACTION_SA_SIGACTION, [1], [sigaction])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_sigaction_sa_sigaction)
|
||||
|
||||
@@ -888,11 +888,11 @@
|
||||
AC_MSG_CHECKING(for termios.c_ispeed)
|
||||
AC_CACHE_VAL(sc_cv_termios_ispeed,
|
||||
[AC_TRY_COMPILE([#include <termios.h>],
|
||||
-[struct termios t; t.c_ispeed=0;],
|
||||
+[struct termios t; t.c_ispeed=ISPEED_OFFSET; t.c_ospeed=OSPEED_OFFSET;],
|
||||
[sc_cv_termios_ispeed=yes],
|
||||
[sc_cv_termios_ispeed=no])])
|
||||
if test $sc_cv_termios_ispeed = yes; then
|
||||
- AC_DEFINE(HAVE_TERMIOS_ISPEED)
|
||||
+ AC_DEFINE(HAVE_TERMIOS_ISPEED, [1], [have ispeed])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_termios_ispeed)
|
||||
|
||||
@@ -923,7 +923,7 @@
|
||||
LIBS="$LIBS1"
|
||||
AC_MSG_RESULT($ac_cv_ispeed_offset)
|
||||
if test $ac_cv_ispeed_offset -ge 0; then
|
||||
- AC_DEFINE_UNQUOTED(ISPEED_OFFSET, $ac_cv_ispeed_offset)
|
||||
+ AC_DEFINE_UNQUOTED(ISPEED_OFFSET, $ac_cv_ispeed_offset, [have ispeed])
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -942,7 +942,7 @@
|
||||
)]
|
||||
)])
|
||||
if test $ac_cv_svid3 = yes; then
|
||||
- AC_DEFINE(_SVID3)
|
||||
+ AC_DEFINE(_SVID3, [1], [svid3])
|
||||
fi
|
||||
AC_MSG_RESULT($ac_cv_svid3)
|
||||
|
||||
@@ -957,7 +957,7 @@
|
||||
[sc_cv_struct_timespec=yes],
|
||||
[sc_cv_struct_timespec=no])])
|
||||
if test $sc_cv_struct_timespec = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_TIMESPEC)
|
||||
+ AC_DEFINE(HAVE_STRUCT_TIMESPEC, [1], [struct timespec])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_timespec)
|
||||
|
||||
@@ -970,7 +970,7 @@
|
||||
[sc_cv_struct_linger=yes],
|
||||
[sc_cv_struct_linger=no])])
|
||||
if test $sc_cv_struct_linger = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_LINGER)
|
||||
+ AC_DEFINE(HAVE_STRUCT_LINGER, [1], [struct linger])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_linger)
|
||||
|
||||
@@ -984,7 +984,7 @@
|
||||
[sc_cv_struct_ip_mreq=yes],
|
||||
[sc_cv_struct_ip_mreq=no])])
|
||||
if test $sc_cv_struct_ip_mreq = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IP_MREQ)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IP_MREQ, [1], [have struct ip mreq])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_ip_mreq)
|
||||
|
||||
@@ -997,7 +997,7 @@
|
||||
[sc_cv_struct_ip_mreqn=yes],
|
||||
[sc_cv_struct_ip_mreqn=no])])
|
||||
if test $sc_cv_struct_ip_mreqn = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IP_MREQN)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IP_MREQN, [1], [have struct ip mreqn])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_ip_mreqn)
|
||||
|
||||
@@ -1010,7 +1010,7 @@
|
||||
[sc_cv_struct_ipv6_mreq=yes],
|
||||
[sc_cv_struct_ipv6_mreq=no])])
|
||||
if test $sc_cv_struct_ipv6_mreq = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IPV6_MREQ)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IPV6_MREQ, [1], [have struct ipv5 mreq])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_ipv6_mreq)
|
||||
|
||||
@@ -1024,7 +1024,7 @@
|
||||
[sc_cv_struct_ifreq=yes],
|
||||
[sc_cv_struct_ifreq=no])])
|
||||
if test $sc_cv_struct_ifreq = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IFREQ)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IFREQ, [1], [have struct ifreq])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_ifreq)
|
||||
|
||||
@@ -1039,7 +1039,7 @@
|
||||
[sc_cv_struct_ifreq_ifr_index=yes],
|
||||
[sc_cv_struct_ifreq_ifr_index=no])])
|
||||
if test $sc_cv_struct_ifreq_ifr_index = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IFREQ_IFR_INDEX)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IFREQ_IFR_INDEX, [1], [have struct ifreq ifr])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_ifreq_ifr_index)
|
||||
|
||||
@@ -1054,7 +1054,7 @@
|
||||
[sc_cv_struct_ifreq_ifr_ifindex=yes],
|
||||
[sc_cv_struct_ifreq_ifr_ifindex=no])])
|
||||
if test $sc_cv_struct_ifreq_ifr_ifindex = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IFREQ_IFR_IFINDEX)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IFREQ_IFR_IFINDEX, [1], [have struct ifreq ifindex])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_ifreq_ifr_ifindex)
|
||||
|
||||
@@ -1069,7 +1069,7 @@
|
||||
[sc_cv_struct_sockaddr_salen=yes],
|
||||
[sc_cv_struct_sockaddr_salen=no])])
|
||||
if test $sc_cv_struct_sockaddr_salen = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_SOCKADDR_SALEN)
|
||||
+ AC_DEFINE(HAVE_STRUCT_SOCKADDR_SALEN, [1], [sockaddr salen])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_sockaddr_salen)
|
||||
|
||||
@@ -1080,31 +1080,31 @@
|
||||
#include <netinet/in.h>],
|
||||
[struct sockaddr_in6 sa6;sa6.sin6_addr.s6_addr[0]=0;],
|
||||
[AC_MSG_RESULT(s6_addr);
|
||||
- AC_DEFINE(HAVE_IP6_SOCKADDR, 0)],
|
||||
+ AC_DEFINE(HAVE_IP6_SOCKADDR, 0, [ip6 sockaddr])],
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <netinet/in.h>],
|
||||
[struct sockaddr_in6 sa6;sa6.sin6_addr.u6_addr.u6_addr16[0]=0;],
|
||||
[AC_MSG_RESULT(u6_addr.u6_addr16);
|
||||
- AC_DEFINE(HAVE_IP6_SOCKADDR, 1)],
|
||||
+ AC_DEFINE(HAVE_IP6_SOCKADDR, 1, [ip6 sockaddr])],
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <netinet/in.h>],
|
||||
[struct sockaddr_in6 sa6;sa6.sin6_addr.u6_addr16[0]=0;],
|
||||
- [AC_MSG_RESULT(u6_addr16); AC_DEFINE(HAVE_IP6_SOCKADDR, 2)],
|
||||
+ [AC_MSG_RESULT(u6_addr16); AC_DEFINE(HAVE_IP6_SOCKADDR, 2, [ip6 sockaddr])],
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <netinet/in.h>],
|
||||
[struct sockaddr_in6 sa6;sa6.sin6_addr.in6_u.u6_addr16[0]=0;],
|
||||
[AC_MSG_RESULT(in6_u.u6_addr16);
|
||||
- AC_DEFINE(HAVE_IP6_SOCKADDR, 3)],
|
||||
+ AC_DEFINE(HAVE_IP6_SOCKADDR, 3, [ip6 sockaddr])],
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <netinet/in.h>],
|
||||
[struct sockaddr_in6 sa6;sa6.sin6_addr._S6_un._S6_u32[0]=0;],
|
||||
[AC_MSG_RESULT(_S6_un._S6_u32);
|
||||
- AC_DEFINE(HAVE_IP6_SOCKADDR, 4)],
|
||||
+ AC_DEFINE(HAVE_IP6_SOCKADDR, 4, [ip6 sockaddr])],
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <netinet/in.h>],
|
||||
[struct sockaddr_in6 sa6;sa6.sin6_addr.__u6_addr.__u6_addr32[0]=0;],
|
||||
[AC_MSG_RESULT(__u6_addr.__u6_addr32);
|
||||
- AC_DEFINE(HAVE_IP6_SOCKADDR, 5)],
|
||||
+ AC_DEFINE(HAVE_IP6_SOCKADDR, 5, [ip6 sockaddr])],
|
||||
|
||||
[AC_MSG_RESULT([none or unknown])]
|
||||
)])])])])])
|
||||
@@ -1116,7 +1116,7 @@
|
||||
[sc_cv_struct_iovec=yes],
|
||||
[sc_cv_struct_iovec=no])])
|
||||
if test $sc_cv_struct_iovec = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IOVEC)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IOVEC, [1], [have struct iovec])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_iovec)
|
||||
|
||||
@@ -1129,7 +1129,7 @@
|
||||
[sc_cv_struct_msghdr_msgcontrol=yes],
|
||||
[sc_cv_struct_msghdr_msgcontrol=no])])
|
||||
if test $sc_cv_struct_msghdr_msgcontrol = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_MSGHDR_MSGCONTROL)
|
||||
+ AC_DEFINE(HAVE_STRUCT_MSGHDR_MSGCONTROL, [1], [have struct msgcontrol])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_msghdr_msgcontrol)
|
||||
|
||||
@@ -1142,7 +1142,7 @@
|
||||
[sc_cv_struct_msghdr_msgcontrollen=yes],
|
||||
[sc_cv_struct_msghdr_msgcontrollen=no])])
|
||||
if test $sc_cv_struct_msghdr_msgcontrollen = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_MSGHDR_MSGCONTROLLEN)
|
||||
+ AC_DEFINE(HAVE_STRUCT_MSGHDR_MSGCONTROLLEN, [1], [have struct msghdr msgcontrollen])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_msghdr_msgcontrollen)
|
||||
|
||||
@@ -1155,7 +1155,7 @@
|
||||
[sc_cv_struct_msghdr_msgflags=yes],
|
||||
[sc_cv_struct_msghdr_msgflags=no])])
|
||||
if test $sc_cv_struct_msghdr_msgflags = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_MSGHDR_MSGFLAGS)
|
||||
+ AC_DEFINE(HAVE_STRUCT_MSGHDR_MSGFLAGS, [1], [msgflags])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_msghdr_msgflags)
|
||||
|
||||
@@ -1168,7 +1168,7 @@
|
||||
[sc_cv_struct_cmsghdr=yes],
|
||||
[sc_cv_struct_cmsghdr=no])])
|
||||
if test $sc_cv_struct_cmsghdr = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_CMSGHDR)
|
||||
+ AC_DEFINE(HAVE_STRUCT_CMSGHDR, [1], [have cmshdr])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_cmsghdr)
|
||||
|
||||
@@ -1181,7 +1181,7 @@
|
||||
[sc_cv_struct_in_pktinfo=yes],
|
||||
[sc_cv_struct_in_pktinfo=no])])
|
||||
if test $sc_cv_struct_in_pktinfo = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IN_PKTINFO)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IN_PKTINFO, [1], [pktinfo])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_in_pktinfo)
|
||||
|
||||
@@ -1211,7 +1211,7 @@
|
||||
[sc_cv_struct_ip_ip_hl=yes],
|
||||
[sc_cv_struct_ip_ip_hl=no])])
|
||||
if test $sc_cv_struct_ip_ip_hl = yes; then
|
||||
- AC_DEFINE(HAVE_STRUCT_IP_IP_HL)
|
||||
+ AC_DEFINE(HAVE_STRUCT_IP_IP_HL, [1], [foo])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_ip_ip_hl)
|
||||
|
||||
@@ -1219,19 +1219,19 @@
|
||||
dnl Library function checks
|
||||
|
||||
dnl Check sigaction()
|
||||
-AC_CHECK_FUNC(sigaction, AC_DEFINE(HAVE_SIGACTION))
|
||||
+AC_CHECK_FUNC(sigaction, AC_DEFINE(HAVE_SIGACTION, [1], [foo]))
|
||||
|
||||
dnl Check for 64bit versions of system calls
|
||||
-AC_CHECK_FUNC(stat64, AC_DEFINE(HAVE_STAT64))
|
||||
-AC_CHECK_FUNC(fstat64, AC_DEFINE(HAVE_FSTAT64))
|
||||
-AC_CHECK_FUNC(lstat64, AC_DEFINE(HAVE_LSTAT64))
|
||||
-AC_CHECK_FUNC(lseek64, AC_DEFINE(HAVE_LSEEK64))
|
||||
-AC_CHECK_FUNC(truncate64, AC_DEFINE(HAVE_TRUNCATE64))
|
||||
-AC_CHECK_FUNC(ftruncate64, AC_DEFINE(HAVE_FTRUNCATE64))
|
||||
-
|
||||
-AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
|
||||
-AC_CHECK_FUNC(hstrerror, AC_DEFINE(HAVE_HSTRERROR))
|
||||
-AC_CHECK_FUNC(inet_ntop, AC_DEFINE(HAVE_INET_NTOP))
|
||||
+AC_CHECK_FUNC(stat64, AC_DEFINE(HAVE_STAT64, [1], [foo]))
|
||||
+AC_CHECK_FUNC(fstat64, AC_DEFINE(HAVE_FSTAT64, [1], [foo]))
|
||||
+AC_CHECK_FUNC(lstat64, AC_DEFINE(HAVE_LSTAT64, [1], [foo]))
|
||||
+AC_CHECK_FUNC(lseek64, AC_DEFINE(HAVE_LSEEK64, [1], [foo]))
|
||||
+AC_CHECK_FUNC(truncate64, AC_DEFINE(HAVE_TRUNCATE64, [1], [foo]))
|
||||
+AC_CHECK_FUNC(ftruncate64, AC_DEFINE(HAVE_FTRUNCATE64, [1], [foo]))
|
||||
+
|
||||
+AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL, [1], [foo]))
|
||||
+AC_CHECK_FUNC(hstrerror, AC_DEFINE(HAVE_HSTRERROR, [1], [foo]))
|
||||
+AC_CHECK_FUNC(inet_ntop, AC_DEFINE(HAVE_INET_NTOP, [1], [foo]))
|
||||
|
||||
#if test "$ac_cv_func_hstrerror" = "yes"; then
|
||||
# AC_MSG_CHECKING(if _XOPEN_SOURCE_EXTENDED is helpful)
|
||||
@@ -1254,25 +1254,26 @@
|
||||
|
||||
dnl Search for openpty()
|
||||
# MacOS
|
||||
-AC_CHECK_FUNC(openpty, AC_DEFINE(HAVE_OPENPTY))
|
||||
+AC_CHECK_FUNC(openpty, AC_DEFINE(HAVE_OPENPTY, [1], [foo]))
|
||||
# AIX
|
||||
AC_CHECK_LIB(bsd, openpty,
|
||||
- [LIBS="-lbsd $LIBS"; AC_DEFINE(HAVE_OPENPTY)])
|
||||
+ [LIBS="-lbsd $LIBS"; AC_DEFINE(HAVE_OPENPTY, [1], [foo])])
|
||||
# Linux 2.4
|
||||
AC_CHECK_LIB(util, openpty,
|
||||
- [LIBS="-lutil $LIBS"; AC_DEFINE(HAVE_OPENPTY)])
|
||||
+ [LIBS="-lutil $LIBS"; AC_DEFINE(HAVE_OPENPTY, [1], [foo])])
|
||||
+
|
||||
|
||||
dnl Search for flock()
|
||||
# with Linux it's in libc, with AIX in libbsd
|
||||
-AC_CHECK_FUNC(flock, AC_DEFINE(HAVE_FLOCK),
|
||||
+AC_CHECK_FUNC(flock, AC_DEFINE(HAVE_FLOCK, [1], [have flock]),
|
||||
AC_CHECK_LIB(bsd, flock, [LIBS="-lbsd $LIBS"]))
|
||||
|
||||
dnl Search for setenv()
|
||||
-AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV),
|
||||
+AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV, [1], [have setenv]),
|
||||
AC_CHECK_LIB(isode, setenv, [LIBS="-lisode $LIBS"]))
|
||||
|
||||
dnl Search for unsetenv()
|
||||
-AC_CHECK_FUNC(unsetenv, AC_DEFINE(HAVE_UNSETENV))
|
||||
+AC_CHECK_FUNC(unsetenv, AC_DEFINE(HAVE_UNSETENV, [1], [have unsetenv]))
|
||||
|
||||
dnl Search for SSLv2_client_method, SSLv2_server_method
|
||||
AC_CHECK_FUNC(SSLv3_client_method, AC_DEFINE(HAVE_SSLv3_client_method), AC_CHECK_LIB(crypt, SSLv3_client_method, [LIBS=-lcrypt $LIBS]))
|
||||
@@ -1295,7 +1296,7 @@
|
||||
[ac_cv_have_z_modifier=no],
|
||||
[ac_cv_have_z_modifier=no])])
|
||||
if test $ac_cv_have_z_modifier = yes; then
|
||||
- AC_DEFINE(HAVE_FORMAT_Z)
|
||||
+ AC_DEFINE(HAVE_FORMAT_Z, [1], [have format z])
|
||||
fi
|
||||
AC_MSG_RESULT($ac_cv_have_z_modifier)
|
||||
|
||||
@@ -1334,7 +1335,8 @@
|
||||
[$2=-1]
|
||||
)
|
||||
LIBS="$LIBS1"])
|
||||
-AC_DEFINE_UNQUOTED($1_SHIFT, ${$2})
|
||||
+SHIFT_NAME="$1"_SHIFT
|
||||
+AC_DEFINE_UNQUOTED($SHIFT_NAME, ${$2}, [foo])
|
||||
if test "$2" = -1; then
|
||||
AC_MSG_WARN(please determine $1_SHIFT manually)
|
||||
fi
|
||||
@@ -1374,7 +1376,7 @@
|
||||
[$4="0 /* unknown, taking default */"
|
||||
]) ]) ]) ]) ]) ]) ]) ])
|
||||
CFLAGS="$CFLAGS1" ])
|
||||
-AC_DEFINE_UNQUOTED($3, ${$4})
|
||||
+AC_DEFINE_UNQUOTED($3, ${$4}, [foo])
|
||||
])
|
||||
|
||||
dnl find what physical type (basic C type) describes the given struct or union
|
||||
@@ -1406,7 +1408,7 @@
|
||||
[$5="0 /* unknown, taking default */"
|
||||
]) ]) ]) ]) ]) ]) ]) ])
|
||||
CFLAGS="$CFLAGS1" ])
|
||||
-AC_DEFINE_UNQUOTED($4, ${$5})
|
||||
+AC_DEFINE_UNQUOTED($4, ${$5}, [foo])
|
||||
])
|
||||
|
||||
AC_BASIC_TYPE([#include <stdlib.h>], size_t, HAVE_BASIC_SIZE_T, sc_cv_type_sizet_basic)
|
||||
@@ -1465,13 +1467,13 @@
|
||||
|
||||
AC_MSG_CHECKING(for /dev/ptmx)
|
||||
if test -c /dev/ptmx; then
|
||||
- AC_DEFINE(HAVE_DEV_PTMX, 1)
|
||||
+ AC_DEFINE(HAVE_DEV_PTMX, 1, [ptmx])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_CHECKING(for /dev/ptc)
|
||||
if test -c /dev/ptc; then
|
||||
- AC_DEFINE(HAVE_DEV_PTC)
|
||||
+ AC_DEFINE(HAVE_DEV_PTC, 1, [ptc])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
@@ -1480,7 +1482,7 @@
|
||||
|
||||
AC_MSG_CHECKING(for /proc)
|
||||
if test -d /proc; then
|
||||
- AC_DEFINE(HAVE_PROC_DIR, 1)
|
||||
+ AC_DEFINE(HAVE_PROC_DIR, 1, [procdir])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
@@ -1488,7 +1490,7 @@
|
||||
|
||||
AC_MSG_CHECKING(for /proc/*/fd)
|
||||
if test -d /proc/$$/fd; then
|
||||
- AC_DEFINE(HAVE_PROC_DIR_FD, 1)
|
||||
+ AC_DEFINE(HAVE_PROC_DIR_FD, 1, [procdir fd])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
@@ -1528,7 +1530,7 @@
|
||||
done])
|
||||
])
|
||||
if test "$sc_cv_have_tcpd_h" = "yes"; then
|
||||
- AC_DEFINE(HAVE_TCPD_H)
|
||||
+ AC_DEFINE(HAVE_TCPD_H, [1], [have tcpd])
|
||||
fi
|
||||
AC_MSG_NOTICE(checked for tcpd.h... $sc_cv_have_tcpd_h)
|
||||
fi # end checking for tcpd.h
|
||||
@@ -1561,14 +1563,14 @@
|
||||
]
|
||||
)
|
||||
if test "$sc_cv_have_libwrap" = 'yes'; then
|
||||
- AC_DEFINE(HAVE_LIBWRAP)
|
||||
+ AC_DEFINE(HAVE_LIBWRAP, [1], [libwrap])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_have_libwrap)
|
||||
fi
|
||||
#
|
||||
if test -n "$WITH_LIBWRAP"; then
|
||||
if test "$sc_cv_have_tcpd_h" = "yes" -a "$sc_cv_have_libwrap" = "yes"; then
|
||||
- AC_DEFINE(WITH_LIBWRAP)
|
||||
+ AC_DEFINE(WITH_LIBWRAP, [1], [libwrap])
|
||||
else
|
||||
AC_MSG_WARN([not all components of tcp wrappers found, disabling it]);
|
||||
fi
|
||||
@@ -1583,7 +1585,7 @@
|
||||
[sc_cv_have_hosts_allow_table=yes],
|
||||
[sc_cv_have_hosts_allow_table=no])])
|
||||
if test $sc_cv_have_hosts_allow_table = yes; then
|
||||
- AC_DEFINE(HAVE_HOSTS_ALLOW_TABLE)
|
||||
+ AC_DEFINE(HAVE_HOSTS_ALLOW_TABLE, [1], [hosts allow table])
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_have_hosts_allow_table)
|
||||
fi # test -n "$WITH_LIBWRAP"
|
|
@ -0,0 +1,28 @@
|
|||
DESCRIPTION = "Socat is a relay for bidirectional data \
|
||||
transfer between two independent data channels."
|
||||
HOMEPAGE = "http://www.dest-unreach.org/socat/"
|
||||
|
||||
SECTION = "console/network"
|
||||
|
||||
DEPENDS = "openssl"
|
||||
|
||||
LICENSE = "GPL-2.0+-with-OpenSSL-exception"
|
||||
|
||||
PR = "r0"
|
||||
SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2;name=src \
|
||||
file://compile.patch"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
|
||||
file://README;beginline=252;endline=282;md5=79246f11a1db0b6ccec54d1fb711c01e"
|
||||
|
||||
SRC_URI[src.md5sum] = "eb563dd00b9d39a49fb62a677fc941fe"
|
||||
SRC_URI[src.sha256sum] = "59b3bde927c14fbc3f9e42c782971710da8a89bbf46f7531f09a681754041802"
|
||||
|
||||
EXTRA_OECONF = " --disable-termios "
|
||||
|
||||
inherit autotools
|
||||
|
||||
do_install_prepend () {
|
||||
mkdir -p ${D}${bindir}
|
||||
install -d ${D}${bindir} ${D}${mandir}/man1
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
From: Sergey Lapin <slapin@slind.org>
|
||||
Date: Wed, 28 Jan 2009 16:34:15 +0300
|
||||
Subject: [PATCH] minimal IEEE802.15.4 allowed
|
||||
|
||||
---
|
||||
tcpdump.c | 3 +++
|
||||
1 files changed, 3 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/tcpdump.c b/tcpdump.c
|
||||
index 06683af..fbc944c 100644
|
||||
--- a/tcpdump.c
|
||||
+++ b/tcpdump.c
|
||||
@@ -282,6 +282,9 @@ static struct printer printers[] = {
|
||||
#ifdef DLT_MFR
|
||||
{ mfr_if_print, DLT_MFR },
|
||||
#endif
|
||||
+#ifdef DLT_IEEE802_15_4
|
||||
+ { raw_if_print, DLT_IEEE802_15_4 },
|
||||
+#endif
|
||||
#if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H)
|
||||
{ bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR},
|
||||
#endif
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
aclocal.m4 | 1 -
|
||||
configure.in | 1 +
|
||||
2 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/aclocal.m4 b/aclocal.m4
|
||||
index 40b5866..0c662b0 100644
|
||||
--- a/aclocal.m4
|
||||
+++ b/aclocal.m4
|
||||
@@ -40,7 +40,6 @@ dnl
|
||||
AC_DEFUN(AC_LBL_C_INIT_BEFORE_CC,
|
||||
[AC_PREREQ(2.50)
|
||||
AC_BEFORE([$0], [AC_LBL_C_INIT])
|
||||
- AC_BEFORE([$0], [AC_PROG_CC])
|
||||
AC_BEFORE([$0], [AC_LBL_FIXINCLUDES])
|
||||
AC_BEFORE([$0], [AC_LBL_DEVEL])
|
||||
AC_ARG_WITH(gcc, [ --without-gcc don't use gcc])
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 11257c9..7f9591c 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -19,6 +19,7 @@ AC_REVISION($Revision: 1.204 $)
|
||||
AC_PREREQ(2.50)
|
||||
AC_INIT(tcpdump.c)
|
||||
|
||||
+AC_PROG_CC
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
AC_LBL_C_INIT_BEFORE_CC(V_CCOPT, V_INCLS)
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
configure.in | 12 ++++++++----
|
||||
1 files changed, 8 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index eb3e5e8..11257c9 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -181,8 +181,9 @@ yes) AC_MSG_RESULT(yes)
|
||||
ipv6=no
|
||||
;;
|
||||
esac ],
|
||||
-
|
||||
- AC_TRY_RUN([ /* AF_INET6 available check */
|
||||
+[
|
||||
+ if test x"$cross_compiling" != "xyes"; then
|
||||
+ AC_TRY_RUN([ /* AF_INET6 avalable check */
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
main()
|
||||
@@ -201,7 +202,10 @@ main()
|
||||
ipv6=no],
|
||||
[ AC_MSG_RESULT(no)
|
||||
ipv6=no]
|
||||
-))
|
||||
+ )
|
||||
+else
|
||||
+ AC_MSG_FAILURE([Unable to check for ipv6 when crosscompiling, please specify.])
|
||||
+fi])
|
||||
|
||||
ipv6type=unknown
|
||||
ipv6lib=none
|
||||
@@ -316,7 +320,7 @@ if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
|
||||
fi
|
||||
|
||||
|
||||
-if test "$ipv6" = "yes"; then
|
||||
+if test x"$cross_compiling" != "xyes" -a "$ipv6" = "yes"; then
|
||||
#
|
||||
# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
|
||||
# function in libc; there are "ngetaddrinfo()" and
|
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
configure | 8 ++++----
|
||||
1 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index cb51d19..73d51af 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -2691,13 +2691,13 @@ if test "$ac_test_CFLAGS" = set; then
|
||||
CFLAGS=$ac_save_CFLAGS
|
||||
elif test $ac_cv_prog_cc_g = yes; then
|
||||
if test "$GCC" = yes; then
|
||||
- CFLAGS="-g -O2"
|
||||
+ CFLAGS="-g"
|
||||
else
|
||||
CFLAGS="-g"
|
||||
fi
|
||||
else
|
||||
if test "$GCC" = yes; then
|
||||
- CFLAGS="-O2"
|
||||
+ CFLAGS=""
|
||||
else
|
||||
CFLAGS=
|
||||
fi
|
||||
@@ -2830,7 +2830,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
if test "$GCC" = yes ; then
|
||||
if test "$SHLICC2" = yes ; then
|
||||
ac_cv_lbl_gcc_vers=2
|
||||
- V_CCOPT="-O2"
|
||||
+ V_CCOPT=""
|
||||
else
|
||||
{ echo "$as_me:$LINENO: checking gcc version" >&5
|
||||
echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
|
||||
@@ -2847,7 +2847,7 @@ fi
|
||||
{ echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
|
||||
echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
|
||||
if test $ac_cv_lbl_gcc_vers -gt 1 ; then
|
||||
- V_CCOPT="-O2"
|
||||
+ V_CCOPT=""
|
||||
fi
|
||||
fi
|
||||
else
|
|
@ -0,0 +1,41 @@
|
|||
DESCRIPTION = "A sophisticated network protocol analyzer"
|
||||
HOMEPAGE = "http://www.tcpdump.org/"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867"
|
||||
SECTION = "console/network"
|
||||
DEPENDS = "libpcap"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = " \
|
||||
http://www.tcpdump.org/release/tcpdump-${PV}.tar.gz \
|
||||
file://tcpdump_configure_no_-O2.patch \
|
||||
file://0001-minimal-IEEE802.15.4-allowed.patch \
|
||||
file://ipv6-cross.patch \
|
||||
file://configure.patch \
|
||||
"
|
||||
|
||||
inherit autotools
|
||||
# ac_cv_linux_vers=${ac_cv_linux_vers=2}
|
||||
|
||||
EXTRA_OECONF = "--without-crypto \
|
||||
${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6', '--disable-ipv6', d)}"
|
||||
|
||||
do_configure() {
|
||||
# AC_CHECK_LIB(dlpi.. was looking to host /lib
|
||||
sed -i 's:-L/lib:-L${STAGING_LIBDIR}:g' ./configure.in
|
||||
|
||||
gnu-configize
|
||||
autoconf
|
||||
oe_runconf
|
||||
sed -i 's:/usr/lib:${STAGING_LIBDIR}:' ./Makefile
|
||||
sed -i 's:/usr/include:${STAGING_INCDIR}:' ./Makefile
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
# tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0
|
||||
rm -f ${D}${sbindir}/tcpdump.${PV}
|
||||
}
|
||||
|
||||
SRC_URI[md5sum] = "d0dd58bbd6cd36795e05c6f1f74420b0"
|
||||
SRC_URI[sha256sum] = "e6cd4bbd61ec7adbb61ba8352c4b4734f67b8caaa845d88cb826bc0b9f1e7f0a"
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Saul Wold <sgw@linux.intel.com>
|
||||
|
||||
Index: wget-1.12/po/Makefile.in.in
|
||||
===================================================================
|
||||
--- wget-1.12.orig/po/Makefile.in.in 2009-09-04 09:31:54.000000000 -0700
|
||||
+++ wget-1.12/po/Makefile.in.in 2011-10-19 20:32:53.714812160 -0700
|
||||
@@ -8,8 +8,8 @@
|
||||
# Please note that the actual code of GNU gettext is covered by the GNU
|
||||
# General Public License and is *not* in the public domain.
|
||||
#
|
||||
-# Origin: gettext-0.17
|
||||
-GETTEXT_MACRO_VERSION = 0.17
|
||||
+# Origin: gettext-0.18
|
||||
+GETTEXT_MACRO_VERSION = 0.18
|
||||
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
Index: wget-1.12/configure.ac
|
||||
===================================================================
|
||||
--- wget-1.12.orig/configure.ac 2009-09-22 09:39:49.000000000 -0700
|
||||
+++ wget-1.12/configure.ac 2011-10-19 20:32:53.714812160 -0700
|
||||
@@ -110,7 +110,7 @@
|
||||
dnl Gettext
|
||||
dnl
|
||||
AM_GNU_GETTEXT([external],[need-ngettext])
|
||||
-AM_GNU_GETTEXT_VERSION([0.17])
|
||||
+AM_GNU_GETTEXT_VERSION([0.18])
|
||||
|
||||
AC_PROG_RANLIB
|
||||
|
||||
Index: wget-1.12/configure
|
||||
===================================================================
|
||||
--- wget-1.12.orig/configure 2009-09-22 09:40:13.000000000 -0700
|
||||
+++ wget-1.12/configure 2011-10-19 20:33:46.578812174 -0700
|
||||
@@ -5297,7 +5297,7 @@
|
||||
|
||||
|
||||
|
||||
- GETTEXT_MACRO_VERSION=0.17
|
||||
+ GETTEXT_MACRO_VERSION=0.18
|
||||
|
||||
|
||||
|
||||
Index: wget-1.12/m4/po.m4
|
||||
===================================================================
|
||||
--- wget-1.12.orig/m4/po.m4 2009-09-04 09:31:54.000000000 -0700
|
||||
+++ wget-1.12/m4/po.m4 2011-10-19 20:33:53.426812176 -0700
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
dnl Release version of the gettext macros. This is used to ensure that
|
||||
dnl the gettext macros and po/Makefile.in.in are in sync.
|
||||
- AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
|
||||
+ AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
|
||||
|
||||
dnl Perform the following tests also if --disable-nls has been given,
|
||||
dnl because they are needed for "make dist" to work.
|
|
@ -0,0 +1,20 @@
|
|||
DESCRIPTION = "A console URL download utility featuring HTTP, FTP, and more."
|
||||
SECTION = "console/network"
|
||||
LICENSE = "GPLv3+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
DEPENDS = "openssl"
|
||||
|
||||
INC_PR = "r13"
|
||||
|
||||
inherit autotools gettext update-alternatives
|
||||
|
||||
EXTRA_OECONF = "--with-libc --enable-ipv6 --with-libssl-prefix=${STAGING_DIR_HOST} --with-ssl=openssl"
|
||||
|
||||
do_install_append () {
|
||||
mv ${D}${bindir}/wget ${D}${bindir}/wget.${PN}
|
||||
}
|
||||
|
||||
ALTERNATIVE_NAME = "wget"
|
||||
ALTERNATIVE_LINK = "${bindir}/wget"
|
||||
ALTERNATIVE_PATH = "${bindir}/wget.${PN}"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
|
@ -0,0 +1,9 @@
|
|||
PR = "${INC_PR}.1"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/wget/wget-${PV}.tar.gz \
|
||||
file://fix_makefile.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "1df489976a118b9cbe1b03502adbfc27"
|
||||
SRC_URI[sha256sum] = "24c7710bc9f220ce23d8a9e0f5673b0efc1cace62db6de0239b5863ecc934dcd"
|
||||
|
||||
require wget.inc
|
|
@ -0,0 +1,3 @@
|
|||
# Start this after udev and sysfs
|
||||
PRINC = "1"
|
||||
INITSCRIPT_PARAMS = "start 5 S ."
|
|
@ -0,0 +1,10 @@
|
|||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
||||
|
||||
PRINC = "1"
|
||||
|
||||
do_install_append() {
|
||||
# This breaks autoloading of modules as they are loaded before depmod runs
|
||||
rm ${D}${datadir}/opkg/intercept/depmod
|
||||
rm ${D}${datadir}/opkg/intercept/update-modules
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
||||
|
||||
PRINC="1"
|
||||
|
||||
FILES_${PN} += " ${datadir}/aclocal "
|
|
@ -0,0 +1,59 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: udev
|
||||
# Required-Start: mountvirtfs
|
||||
# Required-Stop:
|
||||
# Default-Start: S
|
||||
# Default-Stop:
|
||||
# Short-Description: Start udevd, populate /dev and load drivers.
|
||||
### END INIT INFO
|
||||
|
||||
export TZ=/etc/localtime
|
||||
|
||||
[ -d /sys/class ] || exit 1
|
||||
[ -r /proc/mounts ] || exit 1
|
||||
[ -x /sbin/udevd ] || exit 1
|
||||
[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
|
||||
|
||||
kill_udevd() {
|
||||
if [ -x /sbin/pidof ]; then
|
||||
pid=`/sbin/pidof -x udevd`
|
||||
[ -n "$pid" ] && kill $pid
|
||||
fi
|
||||
}
|
||||
|
||||
export ACTION=add
|
||||
# propagate /dev from /sys
|
||||
echo -n "Starting udev"
|
||||
|
||||
# mount the tmpfs on /dev, if not already done
|
||||
LANG=C awk "\$2 == \"/dev\" && \$4 == \"tmpfs\" { exit 1 }" /proc/mounts && {
|
||||
mount -n -o mode=0755 -t tmpfs none "/dev"
|
||||
mkdir -m 0755 /dev/pts
|
||||
mkdir -m 1777 /dev/shm
|
||||
}
|
||||
|
||||
if [ -e /etc/dev.tar ]; then
|
||||
(cd /; tar xf /etc/dev.tar 2>&1)
|
||||
not_first_boot=1
|
||||
fi
|
||||
|
||||
# make_extra_nodes
|
||||
kill_udevd > "/dev/null" 2>&1
|
||||
|
||||
# trigger the sorted events
|
||||
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
|
||||
/sbin/udevd -d
|
||||
|
||||
/sbin/udevadm control --env=STARTUP=1
|
||||
if [ "$not_first_boot" != "" ];then
|
||||
/sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform
|
||||
(/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env=STARTUP=)&
|
||||
else
|
||||
/sbin/udevadm trigger
|
||||
/sbin/udevadm settle
|
||||
fi
|
||||
|
||||
echo
|
||||
exit 0
|
|
@ -0,0 +1,13 @@
|
|||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
|
||||
|
||||
PRINC="8"
|
||||
FILES_libgudev = "${base_libdir}/libgudev*.so.* ${libdir}/libgudev*.so.*"
|
||||
FILES_libgudev-dbg = "${base_libdir}/.debug/libgudev*.so.* ${libdir}/.debug/libgudev*.so.*"
|
||||
|
||||
PACKAGES =+ "udev-acl udev-consolekit"
|
||||
|
||||
FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules"
|
||||
|
||||
RDEPENDS_udev-consolekit += "udev-acl"
|
||||
FILES_udev-consolekit = "${libdir}/ConsoleKit"
|
|
@ -0,0 +1,28 @@
|
|||
DESCRIPTION = "UBL and second stage bootloader flasher for davinci"
|
||||
HOMEPAGE = "http://www.hugovil.com/en/dvnixload/"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=20;md5=f2b40a2eb5162af4c3cb20428e72f921"
|
||||
|
||||
SRCREV = "2fa58b6e4059e43062c74e7078766993bf57896c"
|
||||
SRC_URI = "git://git@git.sysmocom.de/sysmo-bts/dvnixload;protocol=ssh;branch=master"
|
||||
PV = "v0.2.6+git${SRCPV}"
|
||||
PR = "r1"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools
|
||||
|
||||
BBCLASSEXTEND="native"
|
||||
|
||||
|
||||
SRC_URI[md5sum] = "33308f47405c0e96a8248c7b1229dee5"
|
||||
SRC_URI[sha256sum] = "5b76e9cb0ee843208c17053315926e0e168db8a89fe960655a0d0f4871e2b9da"
|
||||
|
||||
do_deploy() {
|
||||
install -d ${DEPLOY_DIR_TOOLS}
|
||||
install -m 0755 src/dvnixload ${DEPLOY_DIR_TOOLS}/dvnixload-${PV}
|
||||
rm -f ${DEPLOY_DIR_TOOLS}/dvnixload
|
||||
ln -sf ./dvnixload-${PV} ${DEPLOY_DIR_TOOLS}/dvnixload
|
||||
|
||||
}
|
||||
|
||||
addtask deploy before do_package after do_install
|
|
@ -0,0 +1,26 @@
|
|||
DESCRIPTION = "sysmocom FemtoBTS API headers"
|
||||
SECTION = "kernel"
|
||||
LICENSE = "CLOSED"
|
||||
|
||||
SRC_URI = "git://git@git.sysmocom.de/sysmo-bts/femtobts-firmware.git;protocol=ssh;branch=master"
|
||||
SRCREV = "6656cf9df31adb0d5514689db6f00119c237dea0"
|
||||
PV = "2.4+git${SRCPV}"
|
||||
PR = "r5"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
do_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${includedir}/sysmocom/femtobts
|
||||
install -d ${D}${libdir}/pkgconfig
|
||||
|
||||
install -m 0755 ${S}/api/* ${D}${includedir}/sysmocom/femtobts/
|
||||
echo "Name: Sysmocom FemtoBTS API
|
||||
Description: Sysmocom FemtoBTS API
|
||||
Versions: 2.0
|
||||
Libs:
|
||||
Cflags: -I${includedir}/sysmocom/femtobts" > ${D}${libdir}/pkgconfig/sysmocom-btsapi.pc
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
DESCRIPTION = "sysmocom calibration utility"
|
||||
SECTION = "kernel"
|
||||
LICENSE = "CLOSED"
|
||||
DEPENDS = "femtobts-api"
|
||||
|
||||
SRC_URI = "git://git@git.sysmocom.de/sysmobts/calib.git;protocol=ssh;branch=master"
|
||||
SRCREV = "a54f9c42a22af8ce8b9843e4d5b33718a81dfd0b"
|
||||
PV = "0.0+git${SRCPV}"
|
||||
PR = "r1"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# Select the API version
|
||||
inherit femtobts_api
|
||||
CPPFLAGS += " ${BTS_HW_VERSION} "
|
||||
|
||||
|
||||
do_compile() {
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${S}/femto-calib ${D}${bindir}/
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
DESCRIPTION = "sysmocom sysmoBTS firmware"
|
||||
SECTION = "kernel"
|
||||
LICENSE = "CLOSED"
|
||||
|
||||
|
||||
SRC_URI = "git://git@git.sysmocom.de/sysmo-bts/femtobts-firmware;protocol=ssh;branch=master"
|
||||
SRCREV = "6656cf9df31adb0d5514689db6f00119c237dea0"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
PV = "1.0+git${SRCPV}"
|
||||
PR = "r5"
|
||||
|
||||
do_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/lib/firmware/
|
||||
|
||||
install -m 0666 ${S}/firmware/sysmobts* ${D}/lib/firmware
|
||||
}
|
||||
|
||||
FILES_${PN}_sysmobts-v1 = "/lib/firmware/sysmobts-v1*"
|
||||
FILES_${PN}_sysmobts-v2 = "/lib/firmware/sysmobts-v2*"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
@ -0,0 +1,44 @@
|
|||
DESCRIPTION = "sysmocom OsmoBTS"
|
||||
LICENSE = "AGPLv3"
|
||||
LIC_FILES_CHKSUM="file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
|
||||
|
||||
SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;branch=master;name=osmobts;destsuffix=git \
|
||||
git://git.osmocom.org/openbsc;protocol=git;branch=master;name=openbsc;destsuffix=openbsc"
|
||||
SRCREV_osmobts = "ad3e31dc4b9ee1063d9e633ca884315b5a5c9710"
|
||||
SRCREV_openbsc = "46cb8514a5a60459214ddee776b37a422abb625e"
|
||||
PV = "0.0+git${SRCPV}"
|
||||
PR = "r16"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV_FORMAT = "openbsc-rosmobts"
|
||||
DEPENDS = "libosmocore libosmo-abis femtobts-api"
|
||||
|
||||
EXTRA_OECONF += "--enable-sysmocom-bts"
|
||||
|
||||
inherit autotools update-rc.d
|
||||
|
||||
# Select the API version
|
||||
inherit femtobts_api
|
||||
CPPFLAGS += " ${BTS_HW_VERSION} "
|
||||
|
||||
do_configure_prepend() {
|
||||
ln -sf ../openbsc openbsc
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
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 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
|
||||
}
|
||||
|
||||
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-bts.cfg"
|
||||
INITSCRIPT_PACKAGES = "${PN}"
|
||||
INITSCRIPT_NAME_${PN} = "sysmobts"
|
||||
INITSCRIPT_PARAMS_${PN} = "defaults 30 30"
|
||||
|
||||
PACKAGES =+ "osmo-bts-remote"
|
||||
|
||||
FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote "
|
|
@ -0,0 +1,39 @@
|
|||
DESCRIPTION = "Davinci UBL for the sysmobts v1 and v2"
|
||||
HOMEPAGE = "http://www.sysmocom.de"
|
||||
SECTION = "bootloaders"
|
||||
PRIORITY = "optional"
|
||||
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://ubl.c;beginline=1;endline=22;md5=806283bb3c475d9082e41f09020373ff"
|
||||
|
||||
SRC_URI = "git://git@git.sysmocom.de/sysmo-bts/ubl;protocol=ssh;branch=master"
|
||||
SRCREV = "8bb73db43ad50db13ebb44aa28ea75ceda57ba52"
|
||||
PV = "v0.2.11+git${SRCPV}"
|
||||
PR = "r2"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit deploy
|
||||
|
||||
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
|
||||
|
||||
UBL_IMAGE ?= "ubl-${MACHINE}-${PV}-${PR}.elf"
|
||||
UBL_SYMLINK ?= "ubl-${MACHINE}.elf"
|
||||
|
||||
BOARD_NAME_sysmobts-v1 = "sysmobts_v1"
|
||||
BOARD_NAME_sysmobts-v2 = "sysmobts_v2"
|
||||
|
||||
do_compile() {
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
unset CPPFLAGS
|
||||
oe_runmake BOARD=${BOARD_NAME}
|
||||
}
|
||||
|
||||
do_deploy() {
|
||||
install ${S}/ubl_${BOARD_NAME}.elf ${DEPLOYDIR}/${UBL_IMAGE}
|
||||
cd ${DEPLOYDIR}
|
||||
rm -f ${UBL_SYMLINK}
|
||||
ln -sf ${UBL_IMAGE} ${UBL_SYMLINK}
|
||||
}
|
||||
|
||||
addtask deploy before do_build after do_compile
|
|
@ -0,0 +1,28 @@
|
|||
SRC_URI = "git://git@git.sysmocom.de/sysmo-bts/u-boot;branch=v2011.12;protocol=ssh"
|
||||
SRCREV = "e77802c0b8b818f502189f24e15f3ca47f1fa344"
|
||||
PV = "v2011.12+git${SRCPV}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
PRINC = "4"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
|
||||
file://README;beginline=1;endline=22;md5=5ba4218ac89af7846802d0348df3fb90"
|
||||
|
||||
UBOOT_MACHINE_sysmobts-v1 = "davinci_sysmobts_v1_config"
|
||||
UBOOT_MACHINE_sysmobts-v2 = "davinci_sysmobts_v2_config"
|
||||
COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2)"
|
||||
|
||||
UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}"
|
||||
UBOOT_SYMLINK = "u-boot-${MACHINE}"
|
||||
|
||||
do_deploy_prepend () {
|
||||
install ${S}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE}.bin
|
||||
install ${S}/u-boot ${DEPLOYDIR}/${UBOOT_IMAGE}.elf
|
||||
|
||||
cd ${DEPLOYDIR}
|
||||
rm -f ${UBOOT_SYMLINK}.bin
|
||||
rm -f ${UBOOT_SYMLINK}.elf
|
||||
ln -sf ${UBOOT_IMAGE}.bin ${UBOOT_SYMLINK}.bin
|
||||
ln -sf ${UBOOT_IMAGE}.elf ${UBOOT_SYMLINK}.elf
|
||||
return
|
||||
}
|
Loading…
Reference in New Issue