mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org,
	Johannes Schneider <johannes.schneider@leica-geosystems.com>
Subject: Re: [PATCH 0/3] scripts: imx: make imx-usb-loader compilable for MinGW
Date: Tue, 11 Apr 2023 14:30:18 +0200	[thread overview]
Message-ID: <20230411123018.GJ19113@pengutronix.de> (raw)
In-Reply-To: <20230411093844.1297004-1-a.fatoum@pengutronix.de>

On Tue, Apr 11, 2023 at 11:38:41AM +0200, Ahmad Fatoum wrote:
> While the system flashing Linux is often running Linux itself, it may
> be Windows instead. To support this, let's support building
> imx-usb-loader for Windows.
> 
> Only compiled-tested on Debian 11 with:
> 
>    x86_64-w64-mingw32-gcc (GCC) 10-win32 20210110 (gcc-mingw-w64-x86-64-posix)
>    libusb-1.0.26-binaries.7z  (from Github releases page)
> 
>   CC=${CC:-x86_64-w64-mingw32-gcc}
>   LIBUSB=${LIBUSB:-../libusb-binaries}
>   
>   CPPFLAGS="-isystem $LIBUSB -I scripts/include/ -I include/mach/"
>   LDFLAGS="-L $LIBUSB -lusb-1.0"
>   
>   $CC -c -o imx.o scripts/imx/imx.c $CPPFLAGS
>   $CC -c -o imx-usb-loader.o scripts/imx/imx-usb-loader.c $CPPFLAGS
>   
>   $CC -o imx-usb-loader.exe imx.o imx-usb-loader.o $LDFLAGS
> 
> 
> Ahmad Fatoum (3):
>   imx-usb-loader: don't depend on arpa/inet.h for endianness conversion
>   scripts: compiler.h: add Windows support
>   scripts: common: drop unused mman.h include

Applied, thanks

Sascha

> 
>  scripts/common.c             |  1 -
>  scripts/compiler.h           | 33 ++++++++++++++++++++++++
>  scripts/imx/imx-usb-loader.c | 49 ++++++++++++++++++------------------
>  3 files changed, 57 insertions(+), 26 deletions(-)
> 
> -- 
> 2.39.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      parent reply	other threads:[~2023-04-11 12:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-11  9:38 Ahmad Fatoum
2023-04-11  9:38 ` [PATCH 1/3] imx-usb-loader: don't depend on arpa/inet.h for endianness conversion Ahmad Fatoum
2023-04-11  9:38 ` [PATCH 2/3] scripts: compiler.h: add Windows support Ahmad Fatoum
2023-04-11  9:38 ` [PATCH 3/3] scripts: common: drop unused mman.h include Ahmad Fatoum
2023-04-11 12:30 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230411123018.GJ19113@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=johannes.schneider@leica-geosystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox