Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. #############################################################################
  2. #@TYPE: Distribution
  3. #@NAME: Minimal
  4. #@DESCRIPTION: Embedded Linux Distribution Configuration
  5. #
  6. #@COMMENT: This distribution configuration can serve as a starting point for
  7. #@COMMENT: the integration of new target platforms, machines, or distributions.
  8. #############################################################################
  9.  
  10. #############################################################################
  11. # NAME and VERSION
  12. #############################################################################
  13. DISTRO_NAME ?= "cbnl-rc"
  14. DISTRO_VERSION = ".dev-snapshot-${SRCDATE}"
  15. #DISTRO_TYPE = "release"
  16. DISTRO_TYPE ?= "debug"
  17.  
  18. # Ensure some form of release config, so error out if someone thinks he knows better
  19. DISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove this line or set a dummy DISTRO_VERSION")
  20.  
  21. #############################################################################
  22. # FEATURE SELECTION
  23. #############################################################################
  24. # Use bluetooth 4.0
  25. DISTRO_BLUETOOTH_MANAGER = "bluez4"
  26. # We want images supporting the following features (for task-base)
  27. DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci"
  28. # Following features are for ARM and E500 based machines
  29. DISTRO_FEATURES += "eabi"
  30.  
  31. # The following feature enables the MIPS ABI PLT extensions
  32. # This feature needs GCC 4.4 binutils 2.19 or glibc/eglibc 2.9
  33. # or higher
  34.  
  35. DISTRO_FEATURES += "mplt"
  36.  
  37. #############################################################################
  38. # LIBRARY NAMES
  39. #############################################################################
  40. # libfoo -> libfoo0-2 (etc)
  41. INHERIT += "debian"
  42.  
  43. #############################################################################
  44. # STAGING AREA
  45. #############################################################################
  46. # Controlled by packaging system
  47. INHERIT += "packaged-staging"
  48.  
  49. #############################################################################
  50. # PACKAGING & FEEDS
  51. #############################################################################
  52. # Chose the packaging system
  53. INHERIT += "package_ipk"
  54. IMAGE_FSTYPES ?= "tar.gz jffs2"
  55. PREFERRED_PKG_FORMAT ?= "ipk"
  56.  
  57. # Put links to sources in deploy/sources to make it easier for people to be GPL compliant
  58. INHERIT += "src_distribute_local"
  59. SRC_DIST_LOCAL ?= "symlink"
  60.  
  61. # If we're using an .ipk based rootfs, we want to have opkg-nogpg installed so postinst script can run
  62. IPKG_VARIANT = "opkg-nogpg"
  63.  
  64. #############################################################################
  65. # IMAGES
  66. #############################################################################
  67. # Name the generated images in a sane way
  68. IMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${LIBC}-${PREFERRED_PKG_FORMAT}-${DISTRO_VERSION}-${MACHINE}"
  69. CACHE ?= "${TMPDIR}/cache/${LIBC}/${MACHINE}"
  70. DEPLOY_DIR ?= "${TMPDIR}/deploy/${LIBC}"
  71. DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
  72. SPLASH ?= "${@base_contains("MACHINE_FEATURES", "screen", "psplash", "",d)}"
  73.  
  74. # increase inode/block ratio for ext2 filesystem
  75. EXTRA_IMAGECMD_ext2 = "-i 8192"
  76.  
  77. #############################################################################
  78. # KERNEL
  79. #############################################################################
  80. KERNEL = "kernel26"
  81. MACHINE_KERNEL_VERSION = "2.6"
  82.  
  83. #############################################################################
  84. # OVERWRITES adjusted from bitbake.conf to feature the MACHINE_CLASS
  85. #############################################################################
  86. OVERRIDES = "local:${MACHINE}:${MACHINE_CLASS}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}"
  87.  
  88. #############################################################################
  89. # TOOLCHAIN
  90. #############################################################################
  91. LIBC ?= "eglibc"
  92. require conf/distro/include/sane-toolchain.inc
  93.  
  94. #############################################################################
  95. # PREFERRED VERSIONS
  96. #############################################################################
  97. require conf/distro/include/sane-srcdates.inc
  98. require conf/distro/include/sane-srcrevs.inc
  99. require conf/distro/include/preferred-e-versions.inc
  100. require conf/distro/include/preferred-opie-versions-1.2.4.inc
  101. require conf/distro/include/preferred-xorg-versions-X11R7.5.inc
  102.  
  103. PREFERRED_PROVIDER_opkg ?= "opkg-nogpg"
  104. PREFERRED_PROVIDER_virtual/update-alternatives ?= "opkg-nogpg"
  105.  
  106. #############################################################################
  107. # CONTENTS
  108. #############################################################################
  109.  
  110. # Ship extra debug utils in the rootfs when doing a debug build
  111. DISTRO_EXTRA_APPS ?= ""
  112. DISTRO_EXTRA_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "task-cli-tools-debug",d)}'
  113.  
  114. # Additional content I (only valid if you include task-base)
  115. # distro-feed-configs: configuration files for the online feeds
  116. # util-linux-ng-mount util-linux-ng-umount: busybox mount is broken
  117. # angstrom-libc-fixup-hack: fixes an obscure bug with libc.so symlink
  118. DISTRO_EXTRA_RDEPENDS += "\
  119. distro-feed-configs \
  120. util-linux-ng-mount util-linux-ng-umount \
  121. angstrom-libc-fixup-hack \
  122. ${DISTRO_EXTRA_APPS} \
  123. "
  124.  
  125. # Additional content II (can be masked with BAD_RECOMMENDATIONS)
  126. DISTRO_EXTRA_RRECOMMENDS += " \
  127. kernel-module-vfat \
  128. kernel-module-ext2 \
  129. kernel-module-ext3 \
  130. kernel-module-af-packet \
  131. avahi-daemon \
  132. avahi-autoipd \
  133. openssh-sftp-server \
  134. "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement