1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-12 15:24:14 +03:00

ubootTools: Fix and work around cross-compilation issues

This commit is contained in:
Samuel Dionne-Riel 2021-02-11 17:20:22 -05:00
parent 715ea5927b
commit 7a0a108ffa
2 changed files with 36 additions and 6 deletions

View File

@ -86,13 +86,13 @@ in
'';
});
#
# Fixes sent upstream
# -------------------
#
ubootTools = super.ubootTools.overrideAttrs({ patches ? [], ... }: {
ubootTools = super.ubootTools.overrideAttrs({ buildInputs ? [], patches ? [], ... }: {
# Needed for cross-compiling ubootTools
buildInputs = buildInputs ++ [
self.openssl
];
patches = patches ++ [
./u-boot/0001-mobile-nixos-work-around-ubootTools-cross-compilatio.patch
(fetchpatch {
# https://patchwork.ozlabs.org/project/uboot/patch/20210210194309.07d1dec7@DUFFMAN/
url = "https://patchwork.ozlabs.org/series/229060/mbox/";

View File

@ -0,0 +1,30 @@
From ab87ea4ce5d34b82a7fd539a57f99459ca2ea99e Mon Sep 17 00:00:00 2001
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
Date: Thu, 11 Feb 2021 17:18:05 -0500
Subject: [PATCH] [mobile-nixos]: work around ubootTools cross-compilation
issue
The BMP tool gets compiled for the target system, as others tools do. In
turn, this tool cannot be ran on the system doing the build.
Forcing CONFIG_*_LOGO to values fails because it has been hardcoded to
=y here.
---
tools/Makefile | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/Makefile b/tools/Makefile
index 2d550432ba..135fbd3863 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -6,7 +6,6 @@
# Enable all the config-independent tools
ifneq ($(HOST_TOOLS_ALL),)
CONFIG_ARCH_KIRKWOOD = y
-CONFIG_LCD_LOGO = y
CONFIG_CMD_LOADS = y
CONFIG_CMD_NET = y
CONFIG_XWAY_SWAP_BYTES = y
--
2.29.2