aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mike Frampton <mikeframpo@gmail.com>2020-11-19 22:08:53 +1300
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-11-19 23:09:06 +0100
commit05b11e24c3d4013d3caa0453d9bada9905795e35 (patch)
tree056c9492edb3850fe7e47475dca82ffcc7e4fb3f
parent7c51fc3897ab98630f9a9896f41afe32092b36fc (diff)
downloadbuildroot-05b11e24c3d4013d3caa0453d9bada9905795e35.tar.gz
buildroot-05b11e24c3d4013d3caa0453d9bada9905795e35.tar.bz2
package/abootimg: add host build
Enabling package host build for abootimg so that boot images can be created for boards which boot from this format. Signed-off-by: Mike Frampton <mikeframpo@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/Config.in.host1
-rw-r--r--package/abootimg/Config.in.host8
-rw-r--r--package/abootimg/abootimg.mk10
3 files changed, 19 insertions, 0 deletions
diff --git a/package/Config.in.host b/package/Config.in.host
index c69c756f3a..4f69785810 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,5 +1,6 @@
menu "Host utilities"
+ source "package/abootimg/Config.in.host"
source "package/aespipe/Config.in.host"
source "package/android-tools/Config.in.host"
source "package/asn1c/Config.in.host"
diff --git a/package/abootimg/Config.in.host b/package/abootimg/Config.in.host
new file mode 100644
index 0000000000..65dc479870
--- /dev/null
+++ b/package/abootimg/Config.in.host
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HOST_ABOOTIMG
+ bool "host abootimg"
+ select BR2_PACKAGE_HOST_UTIL_LINUX
+ help
+ Tool to manipulate Android Boot Images, either on files
+ or directly on /dev block devices.
+
+ https://github.com/ggrandou/abootimg
diff --git a/package/abootimg/abootimg.mk b/package/abootimg/abootimg.mk
index e906546948..64cee13c32 100644
--- a/package/abootimg/abootimg.mk
+++ b/package/abootimg/abootimg.mk
@@ -11,6 +11,7 @@ ABOOTIMG_LICENSE_FILES = LICENSE
# depends on libblkid from util-linux
ABOOTIMG_DEPENDENCIES = util-linux
+ABOOTIMG_HOST_DEPENDENCIES = host-util-linux
define ABOOTIMG_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
@@ -20,4 +21,13 @@ define ABOOTIMG_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/abootimg $(TARGET_DIR)/usr/bin/abootimg
endef
+define HOST_ABOOTIMG_BUILD_CMDS
+ $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define HOST_ABOOTIMG_INSTALL_CMDS
+ $(INSTALL) -m 0755 $(@D)/abootimg $(HOST_DIR)/usr/bin/abootimg
+endef
+
$(eval $(generic-package))
+$(eval $(host-generic-package))