mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
add a install_dev target
This will install the libs/headers/devkeys that people normally want. BUG=chromium:466499 TEST=precq still passes BRANCH=None Change-Id: Ice035d7caddad4f05abd702d1a292b690a04d6d4 Reviewed-on: https://chromium-review.googlesource.com/259532 Trybot-Ready: Mike Frysinger <vapier@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
d2e7493e36
commit
9c57bd8300
39
Makefile
39
Makefile
@@ -52,20 +52,28 @@ DEV_DEBUG_FORCE=
|
|||||||
# Where exactly do the pieces go?
|
# Where exactly do the pieces go?
|
||||||
# UB_DIR = utility binary directory
|
# UB_DIR = utility binary directory
|
||||||
# ULP_DIR = pkgconfig directory, usually /usr/lib/pkgconfig
|
# ULP_DIR = pkgconfig directory, usually /usr/lib/pkgconfig
|
||||||
|
# UI_DIR = include directory for library headers
|
||||||
|
# US_DIR = shared data directory (for static content like devkeys)
|
||||||
# DF_DIR = utility defaults directory
|
# DF_DIR = utility defaults directory
|
||||||
# VB_DIR = vboot binary directory for dev-mode-only scripts
|
# VB_DIR = vboot binary directory for dev-mode-only scripts
|
||||||
ifeq (${MINIMAL},)
|
ifeq (${MINIMAL},)
|
||||||
# Host install just puts everything where it's told
|
# Host install just puts everything where it's told
|
||||||
UB_DIR=${DESTDIR}/bin
|
UB_DIR=${DESTDIR}/bin
|
||||||
ULP_DIR=${DESTDIR}/${LIBDIR}/pkgconfig
|
UL_DIR=${DESTDIR}/${LIBDIR}
|
||||||
|
ULP_DIR=${UL_DIR}/pkgconfig
|
||||||
|
UI_DIR=${DESTDIR}/include/vboot
|
||||||
|
US_DIR=${DESTDIR}/share/vboot
|
||||||
DF_DIR=${DESTDIR}/default
|
DF_DIR=${DESTDIR}/default
|
||||||
VB_DIR=${DESTDIR}/bin
|
VB_DIR=${DESTDIR}/bin
|
||||||
else
|
else
|
||||||
# Target install puts things into different places
|
# Target install puts things into different places
|
||||||
UB_DIR=${DESTDIR}/usr/bin
|
UB_DIR=${DESTDIR}/usr/bin
|
||||||
ULP_DIR=${DESTDIR}/usr/${LIBDIR}/pkgconfig
|
UL_DIR=${DESTDIR}/usr/${LIBDIR}
|
||||||
|
ULP_DIR=${UL_DIR}/pkgconfig
|
||||||
|
UI_DIR=${DESTDIR}/usr/include/vboot
|
||||||
|
US_DIR=${DESTDIR}/usr/share/vboot
|
||||||
DF_DIR=${DESTDIR}/etc/default
|
DF_DIR=${DESTDIR}/etc/default
|
||||||
VB_DIR=${DESTDIR}/usr/share/vboot/bin
|
VB_DIR=${US_DIR}/bin
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Where to install the (exportable) executables for testing?
|
# Where to install the (exportable) executables for testing?
|
||||||
@@ -785,6 +793,9 @@ clean:
|
|||||||
install: cgpt_install utils_install signing_install futil_install \
|
install: cgpt_install utils_install signing_install futil_install \
|
||||||
pc_files_install
|
pc_files_install
|
||||||
|
|
||||||
|
.PHONY: install_dev
|
||||||
|
install_dev: headers_install lib_install
|
||||||
|
|
||||||
.PHONY: install_mtd
|
.PHONY: install_mtd
|
||||||
install_mtd: install cgpt_wrapper_install
|
install_mtd: install cgpt_wrapper_install
|
||||||
|
|
||||||
@@ -960,6 +971,28 @@ ${TINYHOSTLIB}: ${TINYHOSTLIB_OBJS}
|
|||||||
@${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
|
@${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
|
||||||
${Q}ar qc $@ $^
|
${Q}ar qc $@ $^
|
||||||
|
|
||||||
|
.PHONY: headers_install
|
||||||
|
headers_install:
|
||||||
|
@${PRINTF} " INSTALL HEADERS\n"
|
||||||
|
${Q}mkdir -p ${UI_DIR}
|
||||||
|
${Q}${INSTALL} -t ${UI_DIR} -m644 \
|
||||||
|
host/include/* \
|
||||||
|
firmware/include/gpt.h \
|
||||||
|
firmware/include/tlcl.h \
|
||||||
|
firmware/include/tss_constants.h
|
||||||
|
|
||||||
|
.PHONY: lib_install
|
||||||
|
lib_install: ${HOSTLIB}
|
||||||
|
@${PRINTF} " INSTALL HOSTLIB\n"
|
||||||
|
${Q}mkdir -p ${UL_DIR}
|
||||||
|
${Q}${INSTALL} -t ${UL_DIR} -m644 $^
|
||||||
|
|
||||||
|
.PHONY: devkeys_install
|
||||||
|
devkeys_install:
|
||||||
|
@${PRINTF} " INSTALL DEVKEYS\n"
|
||||||
|
${Q}mkdir -p ${US_DIR}/devkeys
|
||||||
|
${Q}${INSTALL} -t ${US_DIR}/devkeys -m644 tests/devkeys/*
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# CGPT library and utility
|
# CGPT library and utility
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user