fvp: build using buildroot

Acked-by: Joakim Bech <joakim.bech@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/fvp.mk b/fvp.mk
index aa12bd7..9afe501 100644
--- a/fvp.mk
+++ b/fvp.mk
@@ -33,9 +33,9 @@
 ################################################################################
 # Targets
 ################################################################################
-all: arm-tf boot-img edk2 grub linux optee-os optee-client xtest optee-examples
-clean: arm-tf-clean boot-img-clean busybox-clean edk2-clean grub-clean \
-	optee-os-clean optee-client-clean optee-examples-clean
+all: arm-tf boot-img edk2 grub linux optee-os
+clean: arm-tf-clean boot-img-clean buildroot-clean edk2-clean grub-clean \
+	optee-os-clean
 
 
 include toolchain.mk
@@ -70,18 +70,6 @@
 	$(ARM_TF_EXPORTS) $(MAKE) -C $(ARM_TF_PATH) $(ARM_TF_FLAGS) clean
 
 ################################################################################
-# Busybox
-################################################################################
-BUSYBOX_COMMON_TARGET = fvp
-BUSYBOX_CLEAN_COMMON_TARGET = fvp clean
-
-busybox: busybox-common
-
-busybox-clean: busybox-clean-common
-
-busybox-cleaner: busybox-cleaner-common
-
-################################################################################
 # EDK2 / Tianocore
 ################################################################################
 define edk2-env
@@ -131,33 +119,6 @@
 OPTEE_OS_CLEAN_COMMON_FLAGS += PLATFORM=vexpress-fvp
 optee-os-clean: optee-os-clean-common
 
-optee-client: optee-client-common
-
-optee-client-clean: optee-client-clean-common
-
-################################################################################
-# xtest / optee_test
-################################################################################
-xtest: xtest-common
-
-xtest-clean: xtest-clean-common
-
-xtest-patch: xtest-patch-common
-
-################################################################################
-# Sample applications / optee_examples
-################################################################################
-optee-examples: optee-examples-common
-
-optee-examples-clean: optee-examples-clean-common
-
-################################################################################
-# Root FS
-################################################################################
-filelist-tee: filelist-tee-common
-
-update_rootfs: update_rootfs-common
-
 ################################################################################
 # grub
 ################################################################################
@@ -201,14 +162,14 @@
 # Boot Image
 ################################################################################
 .PHONY: boot-img
-boot-img: linux grub update_rootfs
+boot-img: linux grub buildroot
 	rm -f $(BOOT_IMG)
 	mformat -i $(BOOT_IMG) -n 64 -h 255 -T 131072 -v "BOOT IMG" -C ::
 	mcopy -i $(BOOT_IMG) $(LINUX_PATH)/arch/arm64/boot/Image ::
 	mcopy -i $(BOOT_IMG) $(LINUX_PATH)/arch/arm64/boot/dts/arm/foundation-v8.dtb ::
 	mmd -i $(BOOT_IMG) ::/EFI
 	mmd -i $(BOOT_IMG) ::/EFI/BOOT
-	mcopy -i $(BOOT_IMG) $(GEN_ROOTFS_PATH)/filesystem.cpio.gz ::/initrd.img
+	mcopy -i $(BOOT_IMG) $(ROOT)/out-br/images/rootfs.cpio.gz ::/initrd.img
 	mcopy -i $(BOOT_IMG) $(GRUB_BIN) ::/EFI/BOOT/bootaa64.efi
 	mcopy -i $(BOOT_IMG) $(GRUB_CONFIG_PATH)/grub.cfg ::/EFI/BOOT/grub.cfg