net: axi_emac: Pass directly pointer to register space
[oweals/u-boot.git] / scripts / Makefile.lib
index 1c949fc0eb966cb13ea1c76fe509f50a92a74494..1644f8c48d4b9d13ccfb9ed4b57320df0bcaebea 100644 (file)
@@ -1,3 +1,6 @@
+#
+# SPDX-License-Identifier:     GPL-2.0
+#
 # Backward compatibility
 asflags-y  += $(EXTRA_AFLAGS)
 ccflags-y  += $(EXTRA_CFLAGS)
@@ -297,6 +300,17 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
 
 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
 
+# ACPI
+# ---------------------------------------------------------------------------
+quiet_cmd_acpi_c_asl= ASL     $@
+cmd_acpi_c_asl=         \
+       $(CPP) -x assembler-with-cpp -P -o $<.tmp $<; \
+       iasl -p $< -tc -va $<.tmp; \
+       mv $(patsubst %.asl,%.hex,$<) $@
+
+$(obj)/%.c:    $(src)/%.asl
+       $(call cmd,acpi_c_asl)
+
 # Bzip2
 # ---------------------------------------------------------------------------