Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added midas-util dependencies as packages #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configs/samsung_midas_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
BR2_ARM_ENABLE_VFP=y
BR2_CCACHE=y
BR2_CCACHE=n
BR2_CCACHE_DIR="/mnt/android/buildroot/.ccache"
BR2_CCACHE_INITIAL_SETUP="--max-size 10G"
BR2_KERNEL_HEADERS_4_14=y
Expand Down
4 changes: 4 additions & 0 deletions package/inih/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config BR2_PACKAGE_INIH
bool "inih"
help
ini file parser
24 changes: 24 additions & 0 deletions package/inih/inih.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
################################################################################
#
# inih
#
################################################################################

INIH_VERSION = master
INIH_SITE = $(call github,benhoyt,inih,$(INIH_VERSION))
#INIH_LICENSE = GPL-3.0+
#INIH_LICENSE_FILES = .gitignore
#INIH_DEPENDENCIES = dtc

# Makefile in the repo uses host 'gcc' directly.
# This below uses a make implicit rule so that it picks variables like CC.
#define MIDAS_UTIL_BUILD_CMDS
# $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install CFLAGS='--sysroot $(STAGING_DIR)'
#endef

#define MIDAS_UTIL_INSTALL_TARGET_CMDS
# cp -v $(@D)/out/bin/* $(TARGET_DIR)/bin
# cp -v $(@D)/out/lib/* $(TARGET_DIR)/lib
#endef

$(eval $(generic-package))
4 changes: 4 additions & 0 deletions package/libufdt/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config BR2_PACKAGE_LIBUFDT
bool "libufdt"
help
libufdt
25 changes: 25 additions & 0 deletions package/libufdt/libufdt.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
################################################################################
#
# libufdt
#
################################################################################

LIBUFDT_VERSION = master
LIBUFDT_SITE = https://android.googlesource.com/platform/system/libufdt
LIBUFDT_SITE_METHOD = git
#INIH_LICENSE = GPL-3.0+
#INIH_LICENSE_FILES = .gitignore
#INIH_DEPENDENCIES = dtc

# Makefile in the repo uses host 'gcc' directly.
# This below uses a make implicit rule so that it picks variables like CC.
#define MIDAS_UTIL_BUILD_CMDS
# $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install CFLAGS='--sysroot $(STAGING_DIR)'
#endef

#define MIDAS_UTIL_INSTALL_TARGET_CMDS
# cp -v $(@D)/out/bin/* $(TARGET_DIR)/bin
# cp -v $(@D)/out/lib/* $(TARGET_DIR)/lib
#endef

$(eval $(generic-package))
4 changes: 3 additions & 1 deletion package/midas-util/Config.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
config BR2_PACKAGE_MIDAS_UTIL
bool "midas-util"
depends on BR2_PACKAGE_DTC
depends on BR2_PACKAGE_DTC
depends on BR2_PACKAGE_INIH
depends on BR2_PACKAGE_LIBUFDT
help
utilities for midas devices
11 changes: 5 additions & 6 deletions package/midas-util/midas-util.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
#
################################################################################

MIDAS_UTIL_VERSION = 2eca13712acffa380989ee36a668845b7d8c2e3f
MIDAS_UTIL_SITE = $(call github,fourkbomb,midas-util,$(MIDAS_UTIL_VERSION))
MIDAS_UTIL_VERSION = restructure
MIDAS_UTIL_SITE = $(call github,albojubatus,midas-util,$(MIDAS_UTIL_VERSION))
MIDAS_UTIL_LICENSE = GPL-3.0+
MIDAS_UTIL_LICENSE_FILES = .gitignore
MIDAS_UTIL_DEPENDENCIES = dtc
MIDAS_UTIL_DEPENDENCIES = dtc inih libufdt

# Makefile in the repo uses host 'gcc' directly.
# This below uses a make implicit rule so that it picks variables like CC.
define MIDAS_UTIL_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install CFLAGS='--sysroot $(STAGING_DIR)'
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install DIR_INIH=../../inih-master DIR_LIBUFDT=../../libufdt-master CFLAGS='--sysroot $(STAGING_DIR)'
endef

define MIDAS_UTIL_INSTALL_TARGET_CMDS
cp -v $(@D)/out/bin/* $(TARGET_DIR)/bin
cp -v $(@D)/out/lib/* $(TARGET_DIR)/lib
cp -v $(@D)/bin/* $(TARGET_DIR)/bin
endef

$(eval $(generic-package))