This prevents errors when building and cleaning trees with custom payloads
in them.
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
[BUILDROM] Very minor fixes to make it easier to use custom ELF payloads
Some fixes to make it easier to use a custom ELF payload.
Signed-off-by: Jordan Crouse
jordan.crouse@amd.com
Index: buildrom-devel/packages/linuxbios/generic-linuxbios.mk
===================================================================
--- buildrom-devel.orig/packages/linuxbios/generic-linuxbios.mk
+++ buildrom-devel/packages/linuxbios/generic-linuxbios.mk
@@ -22,6 +22,7 @@ $(SOURCE_DIR)/$(LINUXBIOS_TARBALL):
> $(LINUXBIOS_FETCH_LOG) 2>&1
$(OUTPUT_DIR)/$(TARGET_ROM): $(LINUXBIOS_OUTPUT)
+ @ mkdir -p $(OUTPUT_DIR)
@ cp $< $@
linuxbios: $(OUTPUT_DIR)/$(TARGET_ROM)
Index: buildrom-devel/packages/linuxbios/linuxbios.inc
===================================================================
--- buildrom-devel.orig/packages/linuxbios/linuxbios.inc
+++ buildrom-devel/packages/linuxbios/linuxbios.inc
@@ -83,6 +83,7 @@ $(LINUXBIOS_OUTPUT): $(LINUXBIOS_STAMP_D
generic-linuxbios-clean:
@ echo "Cleaning linuxbios..."
+ @ rm -f $(LINUXBIOS_PAYLOAD_TARGET)
@ if [ -d $(LINUXBIOS_BUILD_DIR) ];then \
$(MAKE) -C $(LINUXBIOS_BUILD_DIR) clean > /dev/null 2>&1; \
fi
Index: buildrom-devel/packages/linuxbios/ga-2761gxdk-linuxbios.mk
===================================================================
--- buildrom-devel.orig/packages/linuxbios/ga-2761gxdk-linuxbios.mk
+++ buildrom-devel/packages/linuxbios/ga-2761gxdk-linuxbios.mk
@@ -24,6 +24,7 @@ $(SOURCE_DIR)/$(LINUXBIOS_TARBALL):
> $(LINUXBIOS_FETCH_LOG) 2>&1
$(OUTPUT_DIR)/$(TARGET_ROM): $(LINUXBIOS_OUTPUT)
+ @ mkdir -p $(OUTPUT_DIR)
@ cat $(LINUXBIOS_OUTPUT) > $@
linuxbios: $(OUTPUT_DIR)/$(TARGET_ROM)
Index: buildrom-devel/packages/linuxbios/m57sli-linuxbios.mk
===================================================================
--- buildrom-devel.orig/packages/linuxbios/m57sli-linuxbios.mk
+++ buildrom-devel/packages/linuxbios/m57sli-linuxbios.mk
@@ -37,6 +37,7 @@ $(SOURCE_DIR)/$(LINUXBIOS_TARBALL):
> $(LINUXBIOS_FETCH_LOG) 2>&1
$(OUTPUT_DIR)/$(TARGET_ROM): $(LINUXBIOS_OUTPUT)
+ @ mkdir -p $(OUTPUT_DIR)
@ cat $(LINUXBIOS_OUTPUT) > $@
linuxbios: $(OUTPUT_DIR)/$(TARGET_ROM)
Index: buildrom-devel/packages/linuxbios/serengeti_cheetah.mk
===================================================================
--- buildrom-devel.orig/packages/linuxbios/serengeti_cheetah.mk
+++ buildrom-devel/packages/linuxbios/serengeti_cheetah.mk
@@ -42,6 +42,7 @@ $(SOURCE_DIR)/$(LINUXBIOS_TARBALL):
> $(LINUXBIOS_FETCH_LOG) 2>&1
$(OUTPUT_DIR)/$(TARGET_ROM): $(LINUXBIOS_OUTPUT)
+ @ mkdir -p $(OUTPUT_DIR)
@ cp $< $@
linuxbios: $(OUTPUT_DIR)/$(TARGET_ROM)
Index: buildrom-devel/packages/linuxbios/tyan-s2882-linuxbios.mk
===================================================================
--- buildrom-devel.orig/packages/linuxbios/tyan-s2882-linuxbios.mk
+++ buildrom-devel/packages/linuxbios/tyan-s2882-linuxbios.mk
@@ -37,6 +37,7 @@ $(SOURCE_DIR)/$(LINUXBIOS_TARBALL):
> $(LINUXBIOS_FETCH_LOG) 2>&1
$(OUTPUT_DIR)/$(TARGET_ROM): $(LINUXBIOS_OUTPUT)
+ @ mkdir -p $(OUTPUT_DIR)
@ cat $(LINUXBIOS_OUTPUT) > $@
linuxbios: $(OUTPUT_DIR)/$(TARGET_ROM)
Index: buildrom-devel/packages/linuxbios/tyan-s2891-linuxbios.mk
===================================================================
--- buildrom-devel.orig/packages/linuxbios/tyan-s2891-linuxbios.mk
+++ buildrom-devel/packages/linuxbios/tyan-s2891-linuxbios.mk
@@ -37,6 +37,7 @@ $(SOURCE_DIR)/$(LINUXBIOS_TARBALL):
> $(LINUXBIOS_FETCH_LOG) 2>&1
$(OUTPUT_DIR)/$(TARGET_ROM): $(LINUXBIOS_OUTPUT)
+ @ mkdir -p $(OUTPUT_DIR)
@ cat $(LINUXBIOS_OUTPUT) > $@
linuxbios: $(OUTPUT_DIR)/$(TARGET_ROM)