opkg-config-base_1.0.bb 694 B

123456789101112131415161718192021222324252627282930
  1. SUMMARY = "Base configuration files for opkg"
  2. LICENSE = "MIT"
  3. LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
  4. PACKAGE_ARCH = "${MACHINE_ARCH}"
  5. PR = "r1"
  6. do_compile() {
  7. mkdir -p ${S}/${sysconfdir}/opkg/
  8. archconf=${S}/${sysconfdir}/opkg/arch.conf
  9. rm -f $archconf
  10. ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}"
  11. priority=1
  12. for arch in $ipkgarchs; do
  13. echo "arch $arch $priority" >> $archconf
  14. priority=$(expr $priority + 5)
  15. done
  16. }
  17. do_install () {
  18. install -d ${D}${sysconfdir}/opkg
  19. install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
  20. }
  21. FILES_${PN} = "${sysconfdir}/opkg/ "
  22. CONFFILES_${PN} += "${sysconfdir}/opkg/arch.conf"