Skip to content
Liu Wenlong edited this page Aug 25, 2017 · 2 revisions
  1. add a choose bar.
    add "AGL_IMAGE_LTP = "yes"" to:
    1) /meta-agl/templates/base/local.conf.sample
    2) /build/conf/local.conf

  2. add depend packages.
    file**: /meta-agl/meta-ivi-common/recipes-test/packagegroups/packagegroup-ivi-common-test.bb
    contents**:
    RDEPENDS_packagegroup-ivi-common-test-ltp += " \
    initscripts-functions bind-utils binutils \
    cronie dnsmasq expect inetutils-ftp inetutils-rsh \
    iptables logrotate net-tools sysstat tcpdump vsftpd \
    lighttpd audit autoconf automake bind btrfs-tools \
    cmake cpio cronie dosfstools e2fsprogs exfat-utils \
    expect fuse-exfat gcc glibc grep gzip hdparm \
    inetutils iproute2 iproute2-ss iputils libaio libcap \
    libevent libmpc libnfsidmap libpam libtirpc lvm2 \
    lzo m4 make mpfr net-tools nfs-utils ntfs-3g-ntfsprogs \
    ossp-uuid parted perl quota rpcbind sudo tar tcl tcpdump \
    tcp-wrappers traceroute unzip which \
    xinetd zip zlib netkit-ftp auditd \
    netkit-rusers-server netkit-rusers-client \
    netkit-rsh-server netkit-rsh-client \
    netkit-rwho-server netkit-rwho-client \
    glibc util-linux util-linux-uuidgen gcc-symlinks \
    glibc-utils curl shadow ntfsprogs ethtool \
    iproute2-tc \

  3. add kernel config files(.cfg):
    file**: /meta-agl/meta-agl-bsp/recipes-kernel/linux/linux-%.bbappend
    contents**:
    ${@bb.utils.contains('AGL_IMAGE_LTP', 'yes', 'file://enable_ltp_network.cfg', '', d)} \
    file**: /meta-agl/meta-agl-bsp/recipes-kernel/linux/linux/enable_ltp_network.cfg
    contendts**:
    CONFIG_FUNCTION_TRACER=y
    CONFIG_STACK_TRACER=y
    CONFIG_NETFILTER_NETLINK=m
    CONFIG_NETLINK_DIAG=y
    CONFIG_INET_AH=m
    CONFIG_INET_ESP=m
    CONFIG_ZRAM=y
    CONFIG_ZRAM_LZ4_COMPRESS=y
    CONFIG_CRYPTO_SHA512=m
    CONFIG_CRYPTO_RMD160=m
    CONFIG_CRYPTO_BLOWFISH=m
    CONFIG_CRYPTO_BLOWFISH_COMMON=m
    CONFIG_CRYPTO_TWOFISH=m
    CONFIG_CRYPTO_TWOFISH_COMMON=m
    CONFIG_CRYPTO_CAMELLIA=m
    CONFIG_CRYPTO_CAST_COMMON=m
    CONFIG_CRYPTO_CAST5=m
    CONFIG_CRYPTO_SERPENT=m
    file**: /meta-agl/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_%.bbappend
    contendts**:
    ${@bb.utils.contains('AGL_IMAGE_LTP', 'yes', '', ' file://disable_ipv6.cfg', d)} \

  4. LTP built with modules:
    file**: /meta-agl/meta-agl/recipes-test/ltp/ltp_%.bbappend
    contendts**:
    do_compile_append () {
    unset LDFLAGS
    make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/kernel/module/delete_module/ modules
    make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/kernel/firmware/fw_load_kernel/ modules
    make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/kernel/device-drivers/acpi/ modules
    make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/kernel/device-drivers/block/block_dev_kernel/ modules
    make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/kernel/device-drivers/uaccess/ modules
    # make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/commands/insmod/ modules
    # make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/kernel/device-drivers/tbio/tbio_kernel/ modules
    # make -C ${STAGING_KERNEL_BUILDDIR} M=$(pwd)/testcases/kernel/device-drivers/pci/tpci_kernel/ modules
    }

Clone this wiki locally