[Buildroot] [PATCHv3] package/bat: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Jul 27 15:01:26 UTC 2020


On Mon, 27 Jul 2020 16:09:22 +0200
Romain Naour <romain.naour at gmail.com> wrote:

> +	# less needs ncurses
> +	select BR2_PACKAGE_NCURSES

less already selects ncurses, so why do we need ncurses here ?

> +BAT_CARGO_OPTS = \
> +	 --bins \
> +	 --$(BAT_CARGO_MODE) \
> +	 --target=$(RUSTC_TARGET_NAME) \
> +	 --manifest-path=$(@D)/Cargo.toml
> +
> +define BAT_BUILD_CMDS
> +	$(TARGET_MAKE_ENV) $(BAT_CARGO_ENV) \
> +	CC_$(subst -,_,$(RUSTC_TARGET_NAME))=$(TARGET_CC) \

I am still not happy with this. There is no reason why this should be
passed on a per-package basis, it should be handled by "cargo" and all
the cross-compilation configuration it has.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list