From patchwork Wed May 16 09:16:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Prince X-Patchwork-Id: 914283 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="biKXvFmo"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40m82p5JMFz9s2L for ; Wed, 16 May 2018 19:17:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C824485D5C; Wed, 16 May 2018 09:17:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lRAQqJZqlvnS; Wed, 16 May 2018 09:17:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id AB3F385071; Wed, 16 May 2018 09:17:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 482871C272D for ; Wed, 16 May 2018 09:17:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4327E8451E for ; Wed, 16 May 2018 09:17:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18zjLsnZe5do for ; Wed, 16 May 2018 09:16:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 06DF483689 for ; Wed, 16 May 2018 09:16:58 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id v5-v6so73972wrf.9 for ; Wed, 16 May 2018 02:16:57 -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=bZbETHMigLDnJSP5oj8lHIQWWUV1abskmh1Ovr2DusU=; b=biKXvFmo0ehQHEtH30utI1OPz7lWpg7Z9Hnkrj8Gx+8O3pBzN+yDUH2wCjx/MnbfNM YCG1BsVAXAGglEb2HYLmsFeluqeD/yA3+Fc9kYBCWg6AOqv+NRe5syTIuQzHqqGLw61p +1t8EcrwoNv5iJhY6TFg0xY0/VcSO5384ysdmhvqB8JpPRcZ1sQYt1+K6+v92UKxISsS vdnWLJMsMa+IyAtHYyI7Y25gnRrajjUXzQcNfMQggYhK0AnIv1ZzN7yaZ5j7Zh6z1k/M 925Ug77tGGCVtsMWP+YnfkUSjA86UdichRnu6fWyk7IayY+hgxjMXts8CEbDEKsWqwmc 9ERw== 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=bZbETHMigLDnJSP5oj8lHIQWWUV1abskmh1Ovr2DusU=; b=nMPZ+5WLuS6xYmoYlid1ukIgn4wgbqJlKF56Eg9vdVX9i7mh6GPwSAeTEJAcgBleQU oyP0h2xpp3aReWuqGey15vVlrTihLuzh5P78wMJ1Mn1AM6zbAvm85EKc+k2UK2vTImzc HTbRmLXtOMzOPMOZlONrQxy4tIio3wTzc9AhkHXGa//IRb4pxd50RsrxrdR6ThGR25kX 7b0Ieu3tqOf0VaamZUvWNZzafA+/mjSRIrmzUzwVAAVvoSwgwZxPZs94FUPF3WzFdNEz xZw0tzarbDREwX5sQjyA3URQp36K4oQqM47yXhM+gj5ZCTz3BdEG3XOp1XWp7D0443NS /8Ew== X-Gm-Message-State: ALKqPwe6h/2NbZCoCGDJFx7fDBCcW+PaG293IUiN34rGtml1854dBlnS vGbve9Mwben+Q1HcKCb/yWx2Qg== X-Google-Smtp-Source: AB8JxZqJPXqZhubd38txHO05A+Hs74bSJaonTUOPnuBccj3XEpbbuinDCA89kwbFUGDmbca3v1T9Rw== X-Received: by 2002:adf:86fa:: with SMTP id 55-v6mr76181wry.232.1526462216214; Wed, 16 May 2018 02:16:56 -0700 (PDT) Received: from VPR-VM.fra.hager.corp ([212.51.167.132]) by smtp.gmail.com with ESMTPSA id i30-v6sm4140675wra.38.2018.05.16.02.16.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 May 2018 02:16:55 -0700 (PDT) From: Vincent Prince To: buildroot@busybox.net Date: Wed, 16 May 2018 11:16:05 +0200 Message-Id: <1526462165-1544-1-git-send-email-vincent.prince.fr@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] imx_usb_loader: Allow target build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vincent Prince MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Vincent Prince --- package/Config.in | 1 + package/imx-usb-loader/Config.in | 10 ++++++++++ package/imx-usb-loader/imx-usb-loader.mk | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 package/imx-usb-loader/Config.in diff --git a/package/Config.in b/package/Config.in index 2be6c64..3cf53ed 100644 --- a/package/Config.in +++ b/package/Config.in @@ -186,6 +186,7 @@ menu "Filesystem and flash utilities" source "package/genext2fs/Config.in" source "package/genpart/Config.in" source "package/genromfs/Config.in" + source "package/imx-usb-loader/Config.in" source "package/mfgtools/Config.in" source "package/mmc-utils/Config.in" source "package/mtd/Config.in" diff --git a/package/imx-usb-loader/Config.in b/package/imx-usb-loader/Config.in new file mode 100644 index 0000000..41585e2 --- /dev/null +++ b/package/imx-usb-loader/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_IMX_USB_LOADER + bool "imx-usb-loader" + depends on BR2_arm + select BR2_PACKAGE_LIBUSB + help + This package contains tools to download and execute code + on Freescale i.MX5/i.MX6 and Vybrid SoCs through the + Serial Download Protocol. + + https://github.com/boundarydevices/imx_usb_loader diff --git a/package/imx-usb-loader/imx-usb-loader.mk b/package/imx-usb-loader/imx-usb-loader.mk index 946a1f3..22698dd 100644 --- a/package/imx-usb-loader/imx-usb-loader.mk +++ b/package/imx-usb-loader/imx-usb-loader.mk @@ -8,14 +8,22 @@ IMX_USB_LOADER_VERSION = 7e77787c83288a421080a9bf2f67063931f561be IMX_USB_LOADER_SITE = $(call github,boundarydevices,imx_usb_loader,$(IMX_USB_LOADER_VERSION)) IMX_USB_LOADER_LICENSE = LGPL-2.1+ IMX_USB_LOADER_LICENSE_FILES = COPYING +IMX_USB_LOADER_DEPENDENCIES = libusb HOST_IMX_USB_LOADER_DEPENDENCIES = host-libusb host-pkgconf +define IMX_USB_LOADER_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) +endef define HOST_IMX_USB_LOADER_BUILD_CMDS $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef +define IMX_USB_LOADER_INSTALL_TARGET_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(TARGET_DIR) install +endef define HOST_IMX_USB_LOADER_INSTALL_CMDS $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(HOST_DIR) install endef +$(eval $(generic-package)) $(eval $(host-generic-package))