Advertisement
rz2k

xorg cross compile

Jul 12th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.90 KB | None | 0 0
  1. # how to use this file?
  2. #
  3. # mkdir -p $HOME/xorg/util
  4. # git clone git://anongit.freedesktop.org/git/xorg/util/modular/ $HOME/xorg/util/modular
  5. # jhbuild -f $HOME/xorg/util/modular/jhbuildrc
  6. #
  7. # Source tree will be in $HOME/xorg
  8. # Binaries will be in $HOME/xorg-build
  9. #
  10.  
  11. os.environ['DISCIMAGE'] = '/media/1bd43259-dc5e-4d41-a367-19b164698c50'
  12. os.environ['CROSS_COMPILE'] = 'arm-none-linux-'
  13. moduleset = 'http://cgit.freedesktop.org/xorg/util/modular/blob/xorg.modules'
  14. # Requires the module set be in $HOME/xorg/util/modular/
  15. moduleset = os.path.join(os.environ['HOME'], 'xorg', 'util', 'modular', 'xorg.modules')
  16.  
  17. modules = [ 'xorg' ]
  18.  
  19. # All modules will be in $HOME/xorg/ after the checkout
  20. checkoutroot = os.environ['HOME']
  21. prefix = os.environ['DISCIMAGE'] +'/usr/local'
  22. os.environ['ACLOCAL'] = 'aclocal -I ' + os.path.join(prefix, 'share', 'aclocal')
  23. os.environ['PKG_CONFIG_PATH'] = os.path.join(prefix, 'lib', 'pkgconfig') \
  24.     + ':' + os.path.join(prefix, 'share', 'pkgconfig')
  25.  
  26. #autogenargs='--cache-file=/usr/src/jhmodular/configure-cache --disable-static'
  27. #os.environ['INSTALL'] = os.path.join(os.environ['HOME'], 'bin', 'install-check')
  28.  
  29. # Setup environment for cross compiling
  30.  
  31. os.environ['BUILD'] = 'x86_64-linux-gnu'
  32. os.environ['HOST'] = 'arm-none-linux-gnueabi'
  33. os.environ['TARGET'] = 'arm-none-linux-gnueabi'
  34.  
  35. cross_compile_prefix = os.environ['CROSS_COMPILE']
  36. tools = {'ADDR2LINE': 'addr2line',
  37.         'AS': 'as',
  38.     'CC': 'gcc',
  39.     'CPP': 'cpp',
  40.         'CPPFILT': 'c++filt',
  41.     'CXX': 'g++',
  42.         'GCOV': 'gcov',
  43.     'LD': 'ld',
  44.     'NM': 'nm',
  45.         'OBJCOPY': 'objcopy',
  46.     'OBJDUMP': 'objdump',
  47.         'READELF': 'readelf',
  48.     'SIZE': 'size',
  49.         'STRINGS': 'strings',
  50.     'AR': 'ar',
  51.         'RANLIB': 'ranlib',
  52.     'STRIP': 'strip'}
  53.  
  54. autogenargs += ' --build='+os.environ['BUILD']
  55. autogenargs += ' --host='+os.environ['HOST']
  56. autogenargs += ' --target='+os.environ['TARGET']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement