]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/h2200/Makefile
ARM64: hikey: hi6220: Add u-boot support for the 96boards CE HiKey board.
[karo-tx-uboot.git] / board / h2200 / Makefile
index 26bf14483f1d21086ae528c9804742c3d03ffa3f..e516e916b41f69121176c972ed16f28b537cce2f 100644 (file)
@@ -6,31 +6,9 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
+obj-y  := h2200.o
 
-LIB    = $(obj)lib$(BOARD).o
+extra-y := h2200-header.bin
 
-COBJS  := h2200.o
-
-SRCS   := $(COBJS:.o=.c) h2200-header.S
-OBJS   := $(addprefix $(obj),$(COBJS))
-
-all: $(LIB) $(obj)h2200-header.bin
-
-$(obj)h2200-header.o: h2200-header.S
-       $(CC) $(CFLAGS) -c -o $@ $<
-
-$(obj)h2200-header.bin: $(obj)h2200-header.o
+$(obj)/h2200-header.bin: $(obj)/h2200-header.o
        $(OBJCOPY) -O binary $< $@
-
-$(LIB):        $(obj).depend $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################