Initial Commit
- initial default booting image
This commit is contained in:
36
package/imx-mkimage/0001-Add-unused-fake-version.patch
Normal file
36
package/imx-mkimage/0001-Add-unused-fake-version.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
From 30e81d949d03f24de3b89d14cf98cb7decb2740c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= <nerv@dawncrow.de>
|
||||
Date: Mon, 25 Feb 2019 22:15:55 +0100
|
||||
Subject: [PATCH] Add unused fake version
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The Makefile makes the assumption that the build process runs
|
||||
from a Git clone of the source code.
|
||||
We can safely add a fake version here, because the code to
|
||||
print it is broken anyway.
|
||||
|
||||
Signed-off-by: André Hentschel <nerv@dawncrow.de>
|
||||
---
|
||||
Makefile | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 1c0b039..49639a5 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -41,9 +41,7 @@ $(MKIMG): src/build_info.h $(SRCS)
|
||||
bin: $(MKIMG)
|
||||
|
||||
src/build_info.h:
|
||||
- @echo -n '#define MKIMAGE_COMMIT 0x' > src/build_info.h
|
||||
- @git rev-parse --short=8 HEAD >> src/build_info.h
|
||||
- @echo '' >> src/build_info.h
|
||||
+ @echo '#define MKIMAGE_COMMIT 0xdeadbeef' > src/build_info.h
|
||||
|
||||
help:
|
||||
@echo $(CURR_DIR)
|
||||
--
|
||||
2.31.1
|
||||
|
||||
7
package/imx-mkimage/Config.in.host
Normal file
7
package/imx-mkimage/Config.in.host
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_HOST_IMX_MKIMAGE
|
||||
bool "host imx-mkimage"
|
||||
help
|
||||
imx-mkimage is used to combine input images and generate
|
||||
final boot image with appropriate IVT set.
|
||||
|
||||
https://github.com/nxp-imx/imx-mkimage
|
||||
3
package/imx-mkimage/imx-mkimage.hash
Normal file
3
package/imx-mkimage/imx-mkimage.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 2b0ac561798b126959167efd767a7bed7e2cca39665a3201b340b77c91dd5c6d imx-mkimage-lf-6.12.49-2.2.0.tar.gz
|
||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c LICENSE
|
||||
38
package/imx-mkimage/imx-mkimage.mk
Normal file
38
package/imx-mkimage/imx-mkimage.mk
Normal file
@@ -0,0 +1,38 @@
|
||||
################################################################################
|
||||
#
|
||||
# imx-mkimage
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IMX_MKIMAGE_VERSION = lf-6.12.49-2.2.0
|
||||
IMX_MKIMAGE_SITE = $(call github,nxp-imx,imx-mkimage,$(IMX_MKIMAGE_VERSION))
|
||||
IMX_MKIMAGE_LICENSE = GPL-2.0+
|
||||
IMX_MKIMAGE_LICENSE_FILES = LICENSE
|
||||
HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
|
||||
# i.MX8M needs a different binary
|
||||
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
||||
BUILD_LDFLAGS="$(HOST_LDFLAGS)" \
|
||||
-C $(@D)/iMX8M SOC_DIR=iMX8M -f soc.mak mkimage_imx8
|
||||
endef
|
||||
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
||||
$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_fit_atf.sh $(HOST_DIR)/bin/mkimage_fit_atf.sh
|
||||
$(INSTALL) -D -m 755 $(@D)/iMX8M/print_fit_hab.sh $(HOST_DIR)/bin/print_fit_hab.sh
|
||||
endef
|
||||
else
|
||||
# i.MX8, i.MX8X and i.MX9
|
||||
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
||||
-C $(@D) MKIMG=mkimage_imx8 mkimage_imx8
|
||||
endef
|
||||
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 755 $(@D)/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
||||
endef
|
||||
endif
|
||||
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user