Permalink
Switch branches/tags
release/0.0.3 gub-release-lilypond-2.17.0-1 gub-release-lilypond-2.17.0-1-actual gub-release-lilypond-2.16.0-1 gub-release-lilypond-2.15.95-1 gub-release-lilypond-2.15.42-1 gub-release-lilypond-2.15.41-1 gub-release-lilypond-2.15.40-1 gub-release-lilypond-2.15.39-1 gub-release-lilypond-2.15.38-1 gub-release-lilypond-2.15.37-1 gub-release-lilypond-2.15.36-1 gub-release-lilypond-2.15.35-1 gub-release-lilypond-2.15.34-1 gub-release-lilypond-2.15.33-1 gub-release-lilypond-2.15.32-1 gub-release-lilypond-2.15.31-1 gub-release-lilypond-2.15.30-1 gub-release-lilypond-2.15.16-1 gub-release-lilypond-2.15.15-1 gub-release-lilypond-2.15.14-1 gub-release-lilypond-2.15.13-1 gub-release-lilypond-2.15.12-1 gub-release-lilypond-2.15.11-1 gub-release-lilypond-2.15.10-1 gub-release-lilypond-2.15.9-1 gub-release-lilypond-2.15.8-1 gub-release-lilypond-2.15.7-1 gub-release-lilypond-2.15.6-1 gub-release-lilypond-2.15.5-1 gub-release-lilypond-2.15.4-1 gub-release-lilypond-2.15.3-1 gub-release-lilypond-2.15.2-1 gub-release-lilypond-2.15.1-1 gub-release-lilypond-2.15.0-1 gub-release-lilypond-2.14.2-1 gub-release-lilypond-2.14.1-1 gub-release-lilypond-2.14.0-1 gub-release-lilypond-2.13.63-1 gub-release-lilypond-2.13.62-1 gub-release-lilypond-2.13.61-1 gub-release-lilypond-2.13.60-1 gub-release-lilypond-2.13.59-1 gub-release-lilypond-2.13.58-1 gub-release-lilypond-2.13.57-1 gub-release-lilypond-2.13.56-1 gub-release-lilypond-2.13.55-1 gub-release-lilypond-2.13.54-1 gub-release-lilypond-2.13.53-1 gub-release-lilypond-2.13.52-1 gub-release-lilypond-2.13.51-1 gub-release-lilypond-2.13.50-1 gub-release-lilypond-2.13.49-1 gub-release-lilypond-2.13.48-1 gub-release-lilypond-2.13.47-1 gub-release-lilypond-2.13.46-1 gub-release-lilypond-2.13.45-1 gub-release-lilypond-2.13.44-1 gub-release-lilypond-2.13.43-1 gub-release-lilypond-2.13.42-1 gub-release-lilypond-2.13.41-1 gub-release-lilypond-2.13.40-1 gub-release-lilypond-2.13.39-1 gub-release-lilypond-2.13.38-1 gub-release-lilypond-2.13.37-1 gub-release-lilypond-2.13.36-1 gub-release-lilypond-2.13.35-1 gub-release-lilypond-2.13.34-1 gub-release-lilypond-2.13.33-1 gub-release-lilypond-2.13.32-1 gub-release-lilypond-2.13.31-1 gub-release-lilypond-2.13.30-1 gub-release-lilypond-2.13.29-1 gub-release-lilypond-2.13.28-1 gub-release-lilypond-2.13.27-2 gub-release-lilypond-2.13.27-1 gub-release-lilypond-2.13.26-1 gub-release-lilypond-2.13.25-1 gub-release-lilypond-2.13.24-1 gub-release-lilypond-2.13.23-1 gub-release-lilypond-2.13.22-1 gub-release-lilypond-2.13.21-1 gub-release-lilypond-2.13.20-1 gub-release-lilypond-2.13.19-1 gub-release-lilypond-2.13.18-1 gub-release-lilypond-2.13.17-1 gub-release-lilypond-2.13.16-1 gub-release-lilypond-2.13.15-1 gub-release-lilypond-2.13.14-1 gub-release-lilypond-2.13.13-1 gub-release-lilypond-2.13.12-1 gub-release-lilypond-2.13.11-1 gub-release-lilypond-2.13.10-1 gub-release-lilypond-2.13.9-1 gub-release-lilypond-2.13.8-1 gub-release-lilypond-2.13.7-1 gub-release-lilypond-2.13.7-0 gub-release-lilypond-2.13.6-1 gub-release-lilypond-2.13.5-0 gub-release-lilypond-2.13.4-1
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (72 sloc) 3.38 KB
from gub import context
from gub import tools
from gub import target
# miscutils/taskset.c:18: warning: function declaration isn't a prototype
# cpu_set_t
class Busybox (target.AutoBuild):
source = 'http://busybox.net/downloads/busybox-1.5.1.tar.bz2'
srcdir_build_broken = True
subpackage_names = ['']
configure_command = 'make -f %(srcdir)s/Makefile defconfig'
@context.subst_method
def autoconf_h (self):
return 'autoconf.h'
def configure (self):
target.AutoBuild.configure (self)
self.file_sub ([('^# CONFIG_FEATURE_SH_IS_ASH is not set', 'CONFIG_FEATURE_SH_IS_ASH=y'),
('^CONFIG_FEATURE_SH_IS_NONE=y', '# CONFIG_FEATURE_SH_IS_NONE is not set'),
('^CONFIG_FEATURE_SH_STANDALONE_SHELL=y', '# CONFIG_FEATURE_SH_STANDALONE_SHELL is not set')],
'%(builddir)s/.config')
self.system ('''rm -f %(builddir)s/include/%(autoconf_h)s
cd %(builddir)s && make include/%(autoconf_h)s > /dev/null 2>&1''')
make_flags = ' CROSS_COMPILE=%(toolchain_prefix)s CONFIG_PREFIX=%(install_root)s'
def install (self):
target.AutoBuild.install (self)
self.system ('''
cd %(install_root)s && mv sbin/init sbin/init.busybox
''')
# 1.5 is too new for glibc on vfp
class Busybox__linux__arm__vfp (Busybox):
source = 'http://busybox.net/downloads/busybox-1.2.2.1.tar.bz2'
def patch (self):
self.system ('''
cd %(srcdir)s && patch -p1 < %(patchdir)s/busybox-mkconfigs.patch
''')
Busybox.patch (self)
make_flags = ' CROSS=%(toolchain_prefix)s PREFIX=%(install_root)s'
@context.subst_method
def autoconf_h (self):
return 'bb_config.h'
class Busybox__tools (tools.AutoBuild, Busybox):
source = 'http://busybox.net/downloads/busybox-1.13.2.tar.gz'
srcdir_build_broken = True
configure_command = 'make -f %(srcdir)s/Makefile defconfig'
@context.subst_method
def autoconf_h (self):
return 'autoconf.h'
def configure (self):
# tools.AutoBuild.configure (self)
self.system ('cd %(builddir)s && %(configure_command)s')
self.file_sub ([
('^# CONFIG_FEATURE_SH_IS_ASH is not set', 'CONFIG_FEATURE_SH_IS_ASH=y'),
('^CONFIG_FEATURE_SH_IS_NONE=y', '# CONFIG_FEATURE_SH_IS_NONE is not set'),
('^CONFIG_FEATURE_SH_STANDALONE_SHELL=y', '# CONFIG_FEATURE_SH_STANDALONE_SHELL is not set'),
('^CONFIG_AR=y', '# CONFIG_AR is not set'),
('^CONFIG_BUNZIP2=y', '# CONFIG_BUNZIP2 is not set'),
('^CONFIG_BZ2=y', '# CONFIG_BZ2 is not set'),
('^CONFIG_FEATURE_SEAMLESS_BZ2=y', '# CONFIG_FEATURE_SEAMLESS_BZ2 is not set'),
('^CONFIG_BZIP2=y', '# CONFIG_BZIP2 is not set'),
('^CONFIG_CLEAR=y', '# CONFIG_CLEAR is not set'),
('^CONFIG_PATCH=y', '# CONFIG_PATCH is not set'),
('^CONFIG_RESET=y', '# CONFIG_RESET is not set'),
('^CONFIG_TAR=y', '# CONFIG_TAR is not set'),
],
'%(builddir)s/.config')
self.system ('''rm -f %(builddir)s/include/%(autoconf_h)s
cd %(builddir)s && make include/%(autoconf_h)s > /dev/null 2>&1''')
make_flags = ' CONFIG_PREFIX=%(install_prefix)s'
def install (self):
tools.AutoBuild.install (self)
self.system ('''
cd %(install_prefix)s && mv sbin/init sbin/init.busybox
''')