multi-devroot.bb 984 B

123456789101112131415161718192021222324252627282930313233
  1. # Multistrap development root filesystem
  2. #
  3. # Copyright (C) 2015-2016 ilbers GmbH
  4. DESCRIPTION = "Multistrap development root"
  5. LICENSE = "gpl-2.0"
  6. LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
  7. PV = "1.0"
  8. SRC_URI = "\
  9. file://hooks/completion_chroot.sh \
  10. file://multistrap.conf \
  11. file://setup.sh \
  12. file://configscript.sh \
  13. file://LICENSE \
  14. "
  15. DEVROOT = "${WORKDIR}/../devroot/rootfs"
  16. do_build() {
  17. #copy config files
  18. install -d ${DEVROOT}
  19. install -d ${WORKDIR}/hooks
  20. install -m 644 ${THISDIR}/${PN}/multistrap.conf ${WORKDIR}
  21. install -m 755 ${THISDIR}/${PN}/setup.sh ${WORKDIR}
  22. install -m 755 ${THISDIR}/${PN}/configscript.sh ${WORKDIR}
  23. install -m 755 ${THISDIR}/${PN}/hooks/* ${WORKDIR}/hooks
  24. sudo multistrap -a armhf -d "${DEVROOT}" -f "${WORKDIR}/multistrap.conf" || true
  25. sudo install -m 755 /usr/bin/qemu-arm-static ${DEVROOT}/usr/bin
  26. }