Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06247972 authored by Spandan Das's avatar Spandan Das
Browse files

Remove empty rules for hostname and build_number

These files are created by soong_ui and not by the primary ninja
execution. Empty rules are currently added to the ninja file to prevent
"Test for dangling rules" from flagging this as an error.

In preparation for turning on "Test for dangling rules" check in `m
--soong-only`, these files will be added to an allowlist in soong_ui's
test_build.go. Therefore, we can clean these up now.

Test: m checkbuild --soong-only
Test: presubmits
Bug: 394096939
Change-Id: I6fd3717fa52ff2461965c3d401860edfbc0cf57d
parent fee5677c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -45,11 +45,6 @@ BUILD_HOSTNAME_FILE := $(SOONG_OUT_DIR)/build_hostname.txt
$(KATI_obsolete_var BUILD_HOSTNAME,Use BUILD_HOSTNAME_FROM_FILE instead)
$(KATI_obsolete_var FILE_NAME_TAG,https://android.googlesource.com/platform/build/+/master/Changes.md#FILE_NAME_TAG)

$(BUILD_NUMBER_FILE):
	# empty rule to prevent dangling rule error for a file that is written by soong_ui
$(BUILD_HOSTNAME_FILE):
	# empty rule to prevent dangling rule error for a file that is written by soong_ui

.KATI_RESTAT: $(BUILD_NUMBER_FILE)
.KATI_RESTAT: $(BUILD_HOSTNAME_FILE)