summaryrefslogtreecommitdiff
path: root/src/ec/51nb/npce985la0dx/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/51nb/npce985la0dx/Makefile.mk')
-rw-r--r--src/ec/51nb/npce985la0dx/Makefile.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ec/51nb/npce985la0dx/Makefile.mk b/src/ec/51nb/npce985la0dx/Makefile.mk
new file mode 100644
index 0000000000..cef41aae27
--- /dev/null
+++ b/src/ec/51nb/npce985la0dx/Makefile.mk
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+ifeq ($(CONFIG_EC_51NB_NPCE985LA0DX),y)
+
+files_added::
+ifeq ($(CONFIG_EC_51NB_NPCE985LA0DX_FIRMWARE),y)
+ $(CBFSTOOL) $(obj)/coreboot.rom write -r EC -f $(CONFIG_EC_51NB_NPCE985LA0DX_FW) --fill-upward
+endif
+
+show_notices::
+ifeq ($(CONFIG_EC_51NB_NPCE985LA0DX_FIRMWARE),)
+ printf "\n** WARNING **\n"
+ printf "You haven't added the firmware blobs for 51NB EC.\n"
+ printf "You may be unable to power on your laptop without these blobs.\n"
+ printf "Please select the following option to add them:\n\n"
+ printf " Chipset --->\n"
+ printf " [*] Add firmware images for 51NB EC\n\n"
+endif
+
+ramstage-y += npce985la0dx.c
+
+endif