Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # how to use this file?
- #
- # mkdir -p $HOME/xorg/util
- # git clone git://anongit.freedesktop.org/git/xorg/util/modular/ $HOME/xorg/util/modular
- # jhbuild -f $HOME/xorg/util/modular/jhbuildrc
- #
- # Source tree will be in $HOME/xorg
- # Binaries will be in $HOME/xorg-build
- #
- os.environ['DISCIMAGE'] = '/media/1bd43259-dc5e-4d41-a367-19b164698c50'
- os.environ['CROSS_COMPILE'] = 'arm-none-linux-'
- moduleset = 'http://cgit.freedesktop.org/xorg/util/modular/blob/xorg.modules'
- # Requires the module set be in $HOME/xorg/util/modular/
- moduleset = os.path.join(os.environ['HOME'], 'xorg', 'util', 'modular', 'xorg.modules')
- modules = [ 'xorg' ]
- # All modules will be in $HOME/xorg/ after the checkout
- checkoutroot = os.environ['HOME']
- prefix = os.environ['DISCIMAGE'] +'/usr/local'
- os.environ['ACLOCAL'] = 'aclocal -I ' + os.path.join(prefix, 'share', 'aclocal')
- os.environ['PKG_CONFIG_PATH'] = os.path.join(prefix, 'lib', 'pkgconfig') \
- + ':' + os.path.join(prefix, 'share', 'pkgconfig')
- #autogenargs='--cache-file=/usr/src/jhmodular/configure-cache --disable-static'
- #os.environ['INSTALL'] = os.path.join(os.environ['HOME'], 'bin', 'install-check')
- # Setup environment for cross compiling
- os.environ['BUILD'] = 'x86_64-linux-gnu'
- os.environ['HOST'] = 'arm-none-linux-gnueabi'
- os.environ['TARGET'] = 'arm-none-linux-gnueabi'
- cross_compile_prefix = os.environ['CROSS_COMPILE']
- tools = {'ADDR2LINE': 'addr2line',
- 'AS': 'as',
- 'CC': 'gcc',
- 'CPP': 'cpp',
- 'CPPFILT': 'c++filt',
- 'CXX': 'g++',
- 'GCOV': 'gcov',
- 'LD': 'ld',
- 'NM': 'nm',
- 'OBJCOPY': 'objcopy',
- 'OBJDUMP': 'objdump',
- 'READELF': 'readelf',
- 'SIZE': 'size',
- 'STRINGS': 'strings',
- 'AR': 'ar',
- 'RANLIB': 'ranlib',
- 'STRIP': 'strip'}
- autogenargs += ' --build='+os.environ['BUILD']
- autogenargs += ' --host='+os.environ['HOST']
- autogenargs += ' --target='+os.environ['TARGET']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement