diff options
Diffstat (limited to 'src/build/mkrules')
-rw-r--r-- | src/build/mkrules/dist.rules.mk | 7 | ||||
-rwxr-xr-x | src/build/mkrules/dist.targets.mk | 47 |
2 files changed, 48 insertions, 6 deletions
diff --git a/src/build/mkrules/dist.rules.mk b/src/build/mkrules/dist.rules.mk index 7cfcd40f6..b9b120112 100644 --- a/src/build/mkrules/dist.rules.mk +++ b/src/build/mkrules/dist.rules.mk @@ -5,7 +5,9 @@ # # OpenPOWER HostBoot Project # -# COPYRIGHT International Business Machines Corp. 2012,2014 +# Contributors Listed Below - COPYRIGHT 2012,2018 +# [+] International Business Machines Corp. +# # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -206,7 +208,7 @@ $(foreach targ,$(COPY_FILES), \ define __COPY_RENAME_TARGET_RULE $(TARGET_DIR)$(3)/$(1): $(ROOTPATH)/$(2) $(TESTVAR_CHANGED_FILE) @mkdir -p $$(dir $$@) - @echo " CP-RENAME $$(notdir $$<) $$(notdir $$@)" && cp -r $$< $$@ + @echo " CP-RENAME $$(notdir $$<) $$(notdir $$@)" && cp -Lr $$< $$@ endef define COPY_RENAME_TARGET_RULE $(call __COPY_RENAME_TARGET_RULE,$(1),$(2)) @@ -443,4 +445,3 @@ $(1)_TARGET_ECHO_START: endef $(foreach targ,$(VALID_TARGETS),$(eval $(call INSTANTIATE_TARGET,$(targ)))) - diff --git a/src/build/mkrules/dist.targets.mk b/src/build/mkrules/dist.targets.mk index f791aa2fe..422c2bad6 100755 --- a/src/build/mkrules/dist.targets.mk +++ b/src/build/mkrules/dist.targets.mk @@ -40,7 +40,7 @@ ROOTPATH = ../../.. # # Content targets. -VALID_TARGETS = fsp tools openpower vpo +VALID_TARGETS = fsp tools openpower vpo errltool # # Files which are to be directly copied into content targets. @@ -149,8 +149,49 @@ COPY_RENAME_FILES = \ securerom.list.bz2:img/securerom.list.bz2:tools,vpo,openpower \ securerom.bin.modinfo:img/securerom.bin.modinfo:tools,vpo,openpower \ $(foreach file, $(call ROOTPATH_WILDCARD,src/build/debug/Hostboot/*.pm), \ - Hostboot/$(notdir $(file)):$(file):tools,vpo,openpower) - + Hostboot/$(notdir $(file)):$(file):tools,vpo,openpower) \ + $(foreach file, $(call ROOTPATH_WILDCARD,obj/genfiles/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + hbplugins/Makefile:obj/genfiles/plugins/Makefile:errltool \ + hbplugins/prdf/Makefile:obj/genfiles/plugins/prdf/Makefile_errl:errltool \ + $(foreach file, $(call ROOTPATH_WILDCARD,obj/genfiles/plugins/prdf/*.h), \ + hbplugins/prdf/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,obj/genfiles/plugins/prdf/*.C), \ + hbplugins/prdf/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,obj/genfiles/plugins/prdf/*.H), \ + hbplugins/prdf/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/sbeio/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/initservice/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/mbox/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/secureboot/common/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/errl/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/fsi/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/vpd/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/i2c/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/runtime/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/isteps/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/usr/scom/plugins/*.*), \ + hbplugins/$(notdir $(file)):$(file):errltool) \ + $(foreach file, $(call ROOTPATH_WILDCARD,src/import/chips/p9/common/include/*.H), \ + hbplugins/prdf/$(notdir $(file)):$(file):errltool) \ + hwas/common/hwasCallout.H:src/include/usr/hwas/common/hwasCallout.H:errltool \ + devicefw/driverif.H:src/include/usr/devicefw/driverif.H:errltool \ + devicefw/userif.H:src/include/usr/devicefw/userif.H:errltool \ + hbplugins/prdf/p9_pm_recovery_ffdc_defines.H:src/import/chips/p9/procedures/hwp/pm/p9_pm_recovery_ffdc_defines.H:errltool \ + hbplugins/prdf/p9_hcd_memmap_base.H:src/import/chips/p9/procedures/hwp/lib/p9_hcd_memmap_base.H:errltool \ + hbplugins/prdf/p9_hcd_header_defs.H:src/import/chips/p9/procedures/hwp/lib/p9_hcd_header_defs.H:errltool \ + hbplugins/prdf/p9_ppe_defs.H:src/import/chips/p9/procedures/hwp/lib/p9_ppe_defs.H:errltool + # # Symbolic links created in the target. # |