forked from rrcarlosr/Jetpack
35 lines
958 B
Makefile
35 lines
958 B
Makefile
# ==========================================================================
|
|
# Installing Image file
|
|
#
|
|
# Installs Image file from INSTALL_IMAGE_PATH directory or the default location:
|
|
#
|
|
# ==========================================================================
|
|
|
|
src := $(obj)
|
|
|
|
PHONY := __kernel_install
|
|
__kernel_install:
|
|
|
|
export kernelinst-root ?= $(obj)
|
|
|
|
include include/config/auto.conf
|
|
include scripts/Kbuild.include
|
|
include $(src)/Makefile
|
|
|
|
PHONY += __kernel_install_prep
|
|
__kernel_install_prep:
|
|
ifeq ("$(kernelinst-root)", "$(obj)")
|
|
$(Q)mkdir -p $(INSTALL_PATH)
|
|
endif
|
|
|
|
# Helper targets for Installing Kernel into the boot directory
|
|
quiet_cmd_kernel_install = INSTALL $(2)
|
|
cmd_kernel_install = mkdir -p $(2); cp $(kernelinst-root)$(2) $(4); cp -r $(kernelinst-root)/$(3) $(4)/dtb;
|
|
|
|
install-dir = $(patsubst $(kernelinst-root)%,$(INSTALL_PATH)%,$(obj))
|
|
|
|
__kernel_install:
|
|
$(call cmd,kernel_install,Image,dts/*,$(install-dir))
|
|
|
|
.PHONY: __kernel_install
|