I would like to have autotools available but to decide myself how to use them.
Here is mytest-image.bb: # Adapted from the meta-intel layer require recipes-core/images/core-image-minimal.bb # Skip processing of this recipe if linux-intel-rt is not explicitly specified as the # PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying # to build multiple virtual/kernel providers. python () { if d.getVar("PREFERRED_PROVIDER_virtual/kernel") != "linux-intel-rt": raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to linux-intel-rt to enable it") } DESCRIPTION = "Small image capable of booting a device with a test suite and \ tools for real-time use. It includes the full meta-toolchain, development \ headers and libraries to form a standalone SDK." DEPENDS += " linux-intel-rt linux-libc-headers" IMAGE_FEATURES += "dev-pkgs tools-sdk tools-debug eclipse-debug tools-profile tools-testapps debug-tweaks" #IMAGE_FEATURES += "keyboard" non disponibile #IMAGE_FEATURES += "ldconfig" non disponibile #IMAGE_FEATURES += "x11-sato" IMAGE_INSTALL += "rt-tests hwlatdetect kernel-dev kernel-devsrc" IMAGE_INSTALL += "keymaps" IMAGE_INSTALL += "vim" IMAGE_INSTALL += "emacs" IMAGE_INSTALL += "nano" IMAGE_INSTALL += "cmake" # 240118 IMAGE_INSTALL:append = " kernel-dev" IMAGE_INSTALL:append = " kernel-devsrc" IMAGE_INSTALL:append = " kernel-modules" IMAGE_INSTALL += "simple-rt" IMAGE_INSTALL += "italian" IMAGE_INSTALL += "ethercat-userspace" IMAGE_INSTALL += "ethercat-kernel" LICENSE = "MIT" Here is ethercat-kernel.bb: LICENSE = "GPL-2.0-only & LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c \ file://devices/e1000/LICENSE;md5=e2643b73e47fa4b29cdfad24ee42bed6" DEPENDS += "pkgconfig-native" RDEPENDS:${PN} += "bash" SRC_URI = "git://gitlab.com/etherlab.org/ethercat.git;protocol=https;branch=master" # Modify these as desired PV = "1.6.0-rc1+git${SRCPV}" SRCREV = "420e6150f55b71b97a84c64831f4928e0859a0e9" S = "${WORKDIR}/git" inherit autotools inherit module EXTRA_OECONF = "--sysconfdir=/etc --enable-generic --disable-igb --disable-8139too --with-linux-dir=${STAGING_KERNEL_BUILDDIR}" EXTRA_OEMAKE += "-f Makefile" #do_configure() { # sh ./bootstrap # sh ./configure --sysconfdir=/etc --disable-8139too --disable-igb --with-linux-dir=${STAGING_KERNEL_BUILDDIR} #} #do_compile() { # make all # make modules #} #do_install() { # make modules_install # make install # depmod #} FILES:${PN} += "${datadir}/*" Here is my local.conf (#comments removed): MACHINE ?= "intel-corei7-64" DISTRO ?= "poky" EXTRA_IMAGE_FEATURES ?= "debug-tweaks" USER_CLASSES ?= "buildstats" PATCHRESOLVE = "noop" BB_DISKMON_DIRS ??= "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,/tmp,100M,100K \ HALT,${TMPDIR},100M,1K \ HALT,${DL_DIR},100M,1K \ HALT,${SSTATE_DIR},100M,1K \ HALT,/tmp,10M,1K" CONF_VERSION = "2" PREFERRED_PROVIDER_virtual/kernel = "linux-intel-rt" EXTRA_IMAGE_FEATURES:append = " tools-sdk dev-pkgs " WKS_FILE = "image-installer.wks.in" IMAGE_FSTYPES:append = " ext4" IMAGE_TYPEDEP:wic = "ext4" INITRD_IMAGE_LIVE="core-image-minimal-initramfs" do_image_wic[depends] += "${INITRD_IMAGE_LIVE}:do_image_complete" do_rootfs[depends] += "virtual/kernel:do_deploy" IMAGE_BOOT_FILES:append = "\ ${KERNEL_IMAGETYPE} \ microcode.cpio \ ${IMGDEPLOYDIR}/${IMAGE_BASENAME}-${MACHINE}.rootfs.ext4;rootfs.img \ ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', 'grub-efi-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \ ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', '${IMAGE_ROOTFS}/boot/EFI/BOOT/grub.cfg;EFI/BOOT/grub.cfg', '', d)} \ ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', 'systemd-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \ ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/loader.conf;loader/loader.conf ', '', d)} \ ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/entries/boot.conf;loader/entries/boot.conf', '', d)} " Thank you -- Daniele Lugli General Logic srl Viale Curreno, 41 10133 Torino Italy tel +39 329 3933041 www.general-logic.com ( http://www.general-logic.com/ ) www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62289): https://lists.yoctoproject.org/g/yocto/message/62289 Mute This Topic: https://lists.yoctoproject.org/mt/103796912/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-