Skip to content

Commit

Permalink
chore: Remove prestorecon (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bownairo authored Dec 5, 2024
1 parent 4ac53c2 commit 0dac15c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 551 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ dev-root-ca.crt
cpp/**/infogetty
cpp/**/infogetty.o
cpp/**/network_info.o
cpp/**/prestorecon
cpp/**/prestorecon.o

# Various build artifacts
artifacts
Expand Down
26 changes: 0 additions & 26 deletions cpp/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,3 @@ genrule(
"@platforms//os:linux",
],
)

cc_binary(
name = "prestorecon_bin",
srcs = [
"prestorecon-cpp/prestorecon.cc",
],
copts = ["-std=c++17"],
linkopts = [
"-lselinux",
"-pthread",
],
target_compatible_with = [
"@platforms//os:linux",
],
)

genrule(
name = "prestorecon_cleaned",
srcs = ["prestorecon_bin"],
outs = ["prestorecon"],
cmd = "objcopy -R .comment -R .note -R .note.gnu.build-id $< $@",
executable = True,
target_compatible_with = [
"@platforms//os:linux",
],
)
6 changes: 1 addition & 5 deletions cpp/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
CXXFLAGS = -Wall -O2 --std=c++17

all: infogetty prestorecon
all: infogetty

infogetty: LDFLAGS += -lsystemd
infogetty: infogetty-cpp/infogetty.o infogetty-cpp/network_info.o
$(CXX) -o $@ $^ $(LDFLAGS)

prestorecon: LDFLAGS += -lselinux -pthread
prestorecon: prestorecon-cpp/prestorecon.o
$(CXX) -o $@ $^ $(LDFLAGS)
Loading

0 comments on commit 0dac15c

Please sign in to comment.