Skip to content

Commit

Permalink
build: remove CONFIG_LIBDECNUMBER
Browse files Browse the repository at this point in the history
It is used by all PPC targets; we can give the directory its own
Makefile.objs file, and include it directly from target/ppc.
target/s390 can do the same when it starts using it.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Oct 16, 2017
1 parent eb584b4 commit 7271a81
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 13 deletions.
6 changes: 0 additions & 6 deletions Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ obj-y += target/$(TARGET_BASE_ARCH)/
obj-y += disas.o
obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o

obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/decContext.o
obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/decNumber.o
obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal32.o
obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal64.o
obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal128.o

#########################################################
# Linux user emulator target

Expand Down
1 change: 0 additions & 1 deletion default-configs/ppc-linux-user.mak
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Default configuration for ppc-linux-user
CONFIG_LIBDECNUMBER=y
1 change: 0 additions & 1 deletion default-configs/ppc-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ CONFIG_E500=y
CONFIG_OPENPIC_KVM=$(call land,$(CONFIG_E500),$(CONFIG_KVM))
CONFIG_PLATFORM_BUS=y
CONFIG_ETSEC=y
CONFIG_LIBDECNUMBER=y
CONFIG_SM501=y
# For PReP
CONFIG_SERIAL_ISA=y
Expand Down
1 change: 0 additions & 1 deletion default-configs/ppc64-linux-user.mak
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Default configuration for ppc64-linux-user
CONFIG_LIBDECNUMBER=y
1 change: 0 additions & 1 deletion default-configs/ppc64-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ CONFIG_E500=y
CONFIG_OPENPIC_KVM=$(call land,$(CONFIG_E500),$(CONFIG_KVM))
CONFIG_PLATFORM_BUS=y
CONFIG_ETSEC=y
CONFIG_LIBDECNUMBER=y
CONFIG_SM501=y
# For pSeries
CONFIG_XICS=$(CONFIG_PSERIES)
Expand Down
1 change: 0 additions & 1 deletion default-configs/ppc64abi32-linux-user.mak
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Default configuration for ppc64abi32-linux-user
CONFIG_LIBDECNUMBER=y
1 change: 0 additions & 1 deletion default-configs/ppc64le-linux-user.mak
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Default configuration for ppc64le-linux-user
CONFIG_LIBDECNUMBER=y
1 change: 0 additions & 1 deletion default-configs/ppcemb-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ CONFIG_PTIMER=y
CONFIG_I8259=y
CONFIG_XILINX=y
CONFIG_XILINX_ETHLITE=y
CONFIG_LIBDECNUMBER=y
CONFIG_SM501=y
5 changes: 5 additions & 0 deletions libdecnumber/Makefile.objs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
obj-y += decContext.o
obj-y += decNumber.o
obj-y += dpd/decimal32.o
obj-y += dpd/decimal64.o
obj-y += dpd/decimal128.o
1 change: 1 addition & 0 deletions target/ppc/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ obj-y += int_helper.o
obj-y += timebase_helper.o
obj-y += misc_helper.o
obj-y += mem_helper.o
obj-y += ../../libdecnumber/
obj-$(CONFIG_USER_ONLY) += user_only_helper.o
obj-y += gdbstub.o

0 comments on commit 7271a81

Please sign in to comment.