Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 41AB8E00C25; Sat, 15 Jun 2019 03:43:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (liu.ming50[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [209.85.208.68 listed in list.dnswl.org] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 071A6E00A5C for ; Sat, 15 Jun 2019 03:43:10 -0700 (PDT) Received: by mail-ed1-f68.google.com with SMTP id k8so7467408edr.11 for ; Sat, 15 Jun 2019 03:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=QFuC3PNa+rCsYs0ZVY8/hOUL8zQgFTFeI+kXpgUDY1Y=; b=rpg0mUxQt0h0q2wZYNqRqZWx/CaLhSxjtmAf4Yk5nqbM1gtmkUYx+IMwjGZCUIdqg/ v6zPa6fUwRU03Nu/ZOxX+0bF0NOWFFqHgJsadCBySCNc/5RGXiVz9JuqAPEC79eGbJ9l 0ldUQsv1IBOZ/mJvt/V/gOI3OGTxXYfFdvYr6OTJpEjertq4MykfHAau4dr0XVypApo2 +sUf24kIMDtZETacldq3rt4Z5p8YegVuZoGFJwjEZxX8m/ZZ1oAqG6n+CW7iYaLguKQR W+kTcsdjrkHDyr4rfeibniT++3Z8QlthWyG8C9+ZVwjYCHNuiQMpQYOvWpI4SjPpu/12 7edw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QFuC3PNa+rCsYs0ZVY8/hOUL8zQgFTFeI+kXpgUDY1Y=; b=agplXzGFdP0B/RqV5J99mYUtFUiRH547/0iF76ifrkKelGA/CQm4qz6be80LbVg4xI 6nqfjHsDNQSsA0jJjIvU+D6QU0AMV9UdgO80OK9atvtEn+0DbZGZc+ZiForNSEdjSRsw m5wPO9TlbzUy/m69U2IWbfrU1iQAP5TOt7pBQ+S8x8fuxfkqG8uAbQwtqMoozbeCirkQ zfQwPMGOTQuFV59UBD7Qcc5kNMm4/4aqEE82LyjTUsNbxYYuSU6o5UjePhUzj0btmoi7 mKqQq28drSzHG7G/FDNdB/O7zD3wPCbgYlPZ2TA5GPLNu0oOauBkAJIjUG9mjY5GWLSC UfWA== X-Gm-Message-State: APjAAAXNYOskHN38W8mcrIBCD12vkqB30/8a5iitEkbPTtk1jcNCwDEa wownYhWnTfqwL58USfhFS84FZCFoNPs= X-Google-Smtp-Source: APXvYqyADA20rNQs3jYVgLO6+Vk2AcaRdO7juukA69cRarPg0YJtoXiSBI5U8V7WPtHa4/FEAGp2XA== X-Received: by 2002:a50:c8c3:: with SMTP id k3mr33707412edh.189.1560595389612; Sat, 15 Jun 2019 03:43:09 -0700 (PDT) Received: from peterliu-Precision-7530.toradex.int (c-b09ee253.022-417-73746f13.bbcust.telenor.se. [83.226.158.176]) by smtp.gmail.com with ESMTPSA id k62sm1741762edc.70.2019.06.15.03.43.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 15 Jun 2019 03:43:08 -0700 (PDT) From: liu.ming50@gmail.com To: meta-freescale@yoctoproject.org Date: Sat, 15 Jun 2019 18:42:48 +0800 Message-Id: <1560595368-26424-1-git-send-email-liu.ming50@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: gerard.salvatella@toradex.com, luka.pivk@toradex.com, stefan.agner@toradex.com, Ming Liu Subject: [PATCH] mfgtools: add recipe X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jun 2019 10:43:12 -0000 From: Ming Liu Freescale/NXP I.MX Chip image deploy tools, uuu (Universal Update Utility), mfgtools 3.0. Signed-off-by: Ming Liu --- .../0001-CMakeLists.txt-fix-libzip-name.patch | 54 ++++++++++++++++++++++ ...MakeLists.txt-support-building-static-uuu.patch | 32 +++++++++++++ recipes-bsp/mfgtools/mfgtools_git.bb | 31 +++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-fix-libzip-name.patch create mode 100644 recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-support-building-static-uuu.patch create mode 100644 recipes-bsp/mfgtools/mfgtools_git.bb diff --git a/recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-fix-libzip-name.patch b/recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-fix-libzip-name.patch new file mode 100644 index 0000000..03f68a5 --- /dev/null +++ b/recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-fix-libzip-name.patch @@ -0,0 +1,54 @@ +From b11bd93be67c5ad92e279f071a812234486c128b Mon Sep 17 00:00:00 2001 +From: Ming Liu +Date: Thu, 13 Jun 2019 16:52:45 +0200 +Subject: [PATCH] CMakeLists.txt: fix libzip name + +Change libzip -> zlib, this is needed for building with OE. + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Ming Liu +--- + libuuu/CMakeLists.txt | 2 +- + uuu/CMakeLists.txt | 5 ++--- + 2 files changed, 3 insertions(+), 4 deletions(-) + +diff --git a/libuuu/CMakeLists.txt b/libuuu/CMakeLists.txt +index 740d7ed..30324d0 100644 +--- a/libuuu/CMakeLists.txt ++++ b/libuuu/CMakeLists.txt +@@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) + + find_package(PkgConfig REQUIRED) + pkg_check_modules(LIBUSB REQUIRED libusb-1.0>=1.0.16) +-pkg_check_modules(LIBZIP REQUIRED libzip) ++pkg_check_modules(LIBZIP REQUIRED zlib) + find_package(Threads) + + include_directories(${LIBUSB_INCLUDE_DIRS} include) +diff --git a/uuu/CMakeLists.txt b/uuu/CMakeLists.txt +index a2d8c87..1ca8013 100644 +--- a/uuu/CMakeLists.txt ++++ b/uuu/CMakeLists.txt +@@ -5,8 +5,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) + + find_package(PkgConfig REQUIRED) + pkg_check_modules(LIBUSB REQUIRED libusb-1.0>=1.0.16) +-pkg_check_modules(LIBZIP REQUIRED libzip) +-pkg_check_modules(LIBZ REQUIRED zlib) ++pkg_check_modules(LIBZIP REQUIRED zlib) + find_package(Threads) + + +@@ -27,7 +26,7 @@ set(LSTS + sd_burn_all.lst + ) + +-link_directories(${CMAKE_CURRENT_SOURCE_DIR}/libuuu ${LIBUSB_LIBRARY_DIRS} ${LIBZIP_LIBRARY_DIRS} ${LIBZ_LIBRARY_DIRS}) ++link_directories(${CMAKE_CURRENT_SOURCE_DIR}/libuuu ${LIBUSB_LIBRARY_DIRS} ${LIBZIP_LIBRARY_DIRS}) + + set(CLIST_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/gen_txt_include.sh) + set(generated_files_dir "${CMAKE_BINARY_DIR}/uuu/gen") +-- +2.7.4 + diff --git a/recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-support-building-static-uuu.patch b/recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-support-building-static-uuu.patch new file mode 100644 index 0000000..bb69c87 --- /dev/null +++ b/recipes-bsp/mfgtools/mfgtools/0001-CMakeLists.txt-support-building-static-uuu.patch @@ -0,0 +1,32 @@ +From 2ccb6fa0ae52981c78f79afa7009ccab11c6703f Mon Sep 17 00:00:00 2001 +From: Ming Liu +Date: Sat, 15 Jun 2019 05:18:10 +0800 +Subject: [PATCH] CMakeLists.txt: support building static uuu + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Ming Liu +--- + CMakeLists.txt | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 302f8cb..f23871e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,12 @@ set(CMAKE_CXX_STANDARD 11) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + + option(BUILD_DOC "Build documentation" OFF) ++option(BUILD_STATIC "Build static uuu binary" OFF) ++ ++if (BUILD_STATIC) ++ set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") ++ set(CMAKE_EXE_LINKER_FLAGS "-static -static-libgcc -static-libstdc++") ++endif (BUILD_STATIC) + + add_subdirectory(libuuu) + add_subdirectory(uuu) +-- +2.7.4 + diff --git a/recipes-bsp/mfgtools/mfgtools_git.bb b/recipes-bsp/mfgtools/mfgtools_git.bb new file mode 100644 index 0000000..4ba6065 --- /dev/null +++ b/recipes-bsp/mfgtools/mfgtools_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "uuu (Universal Update Utility), mfgtools 3.0" +DESCRIPTION = "Freescale/NXP I.MX Chip image deploy tools, uuu (Universal Update Utility), mfgtools 3.0." +HOMEPAGE = "https://github.com/NXPmicro/mfgtools" +SECTION = "devel" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://README.md;md5=653656dfc74a26684d74346214abe93a" + +SRC_URI = "gitsm://github.com/NXPmicro/mfgtools;branch=master \ + file://0001-CMakeLists.txt-fix-libzip-name.patch \ + file://0001-CMakeLists.txt-support-building-static-uuu.patch \ + " + +# uuu_1.2.91 +SRCREV = "3799f4d7b0464cc9253b4597ba7ccc54deefca20" + +PV = "1.2.91+git${SRCPV}" + +S = "${WORKDIR}/git" + +DEPENDS = "libusb1 zlib bzip2" + +inherit pkgconfig cmake + +PACKAGECONFIG ??= "static" +PACKAGECONFIG[doc] = "-DBUILD_DOC=ON,-DBUILD_DOC=OFF,doxygen-native" +PACKAGECONFIG[static] = "-DBUILD_STATIC=ON,-DBUILD_STATIC=OFF" + +# Do not set RPATH if static build is intended. +OECMAKE_RPATH_forcevariable = "${@bb.utils.contains('PACKAGECONFIG', 'static', '', '${libdir}', d)}" + +BBCLASSEXTEND = "native" -- 2.7.4